{ "id": "169517", "key": "DAEMON-93", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "12519", "key": "DAEMON", "name": "Appcelerator Daemon" }, "fixVersions": [ { "id": "20870", "description": "", "name": "Appc Daemon 3.1.0", "archived": false, "released": true, "releaseDate": "2019-11-07" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-09-10T04:51:15.000+0000", "created": "2017-08-11T21:57:06.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "56909", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "172410", "key": "DAEMON-264", "fields": { "summary": "Output log messages for specific request", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Trivial", "id": "5" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2019-09-10T04:51:15.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "15050", "name": "appcd-core", "description": "Core daemon logic: config, plugin loader, logging, dispatcher" } ], "description": "The daemon needs to persist the log to disk. We can do this pretty easily by introducing a listener to the logger and writing the data to a log file. Every time the daemon is started, a fresh log file is created in {{~/.appcelerator/appcd/log}}.\r\n\r\nWe still need to determine a few things:\r\n* Should we rotate old logs? Keep last 5 logs? gzip older logs?\r\n* How should we handle log files that could potentially be huge?\r\n\r\nThe log messages should be streamed as objects containing metadata such as timestamps, etc. This structure should be preserved when written to disk.", "attachment": [], "flagged": false, "summary": "Persist logs to disk", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": null, "closedSprints": [ { "id": 1163, "state": "closed", "name": "2019 Sprint 19", "startDate": "2019-09-09T20:43:13.091Z", "endDate": "2019-09-22T20:43:00.000Z", "completeDate": "2019-09-23T15:37:35.874Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "430920", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "As of v1.0.0, the daemon has a {{appcd dump}} command which generates a dump file including the logs.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-11-17T16:31:00.000+0000", "updated": "2017-11-17T16:31:00.000+0000" }, { "id": "451246", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Added {{server.persistDebugLog}} config setting. Defaults to {{false}} because there's no logrotate functionality and we don't want logs to eat up a bunch of space.\r\n\r\nhttps://github.com/appcelerator/appc-daemon/commit/efeb91690dd2b15c3ece3f53c1dd51e596a0f25d", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2019-09-10T04:50:48.000+0000", "updated": "2019-09-10T04:50:48.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }