Currently all services simply delete the current log file and start from scratch when services are restarted (e.g. 1, 2, ...). This behavior is not great because information from the last run are lost instantly and debugging is a pain as you need to reopen the log file over and over (no tail -f ... possible).
Good practice would be:
Do not delete log file on startup
Check log file size on every output, rotate and create a new log file if larger than X bytes (e.g. 4 MB) - partly implemented already
Keep track of X log files and delete old ones (e.g. keep 5 old logs)
Bonus:
Remove FOG ASCII logo on startup to save unnecessary log output
Currently all services simply delete the current log file and start from scratch when services are restarted (e.g. 1, 2, ...). This behavior is not great because information from the last run are lost instantly and debugging is a pain as you need to reopen the log file over and over (no
tail -f ...
possible).Good practice would be:
Bonus: