Doodle3D/doodle3d-firmware

Log rotate

peteruithoven opened this issue · 2 comments

Currently we just write logs to log files, but this means that after a while the log files will take up so much space that the box crashes. To make sure that this doesn't happen to soon we limit the info that we log. While it would be interesting to for example log all the api communication and serial communication.

Rotating the log files means we automatically delete the oldest logs. There are ways of doing this. We probably want to switch to another log file when the current log file exeeds a certain number of lines. Then the older files can be automatically removed.
https://en.wikipedia.org/wiki/Log_Rotate

Original: Doodle3D/doodle3d-client#147

Let's consider this a duplicate of Doodle3D/print3d#32 and close it.