[DAEMON-93] Persist logs to disk
|Appc Daemon 3.1.0
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
We still need to determine a few things:
* Should we rotate old logs? Keep last 5 logs? gzip older logs?
* How should we handle log files that could potentially be huge?
The log messages should be streamed as objects containing metadata such as timestamps, etc. This structure should be preserved when written to disk.
- Chris Barber 2017-11-17
As of v1.0.0, the daemon has a
appcd dumpcommand which generates a dump file including the logs.
- Chris Barber 2019-09-10
server.persistDebugLogconfig setting. Defaults to
falsebecause there's no logrotate functionality and we don't want logs to eat up a bunch of space. https://github.com/appcelerator/appc-daemon/commit/efeb91690dd2b15c3ece3f53c1dd51e596a0f25d