aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/queuelogger.py
Commit message (Collapse)AuthorAgeFilesLines
* queuelogger: Add critical information to each logfile on rolloverKevin O'Connor2017-05-011-15/+27
| | | | | | | When the log file does a rollover, start the top of the log with critical system information (eg, software versions). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* queuelogger: Automatically roll log fileKevin O'Connor2017-04-141-4/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* queuelogger: Add support for background log writingKevin O'Connor2016-11-121-0/+48
Writing to the debug log can cause an unbounded delay due to disk IO. This is particularly so on embedded machines such as the Raspberry Pi that run on SD cards. These log writing delays can cause problems for the main processing threads. The new "queuelogger" code forwards all the main thread log messages to a queue, and a background thread writes the log messages from the queue to the destination file. This eliminates the IO delay from the main threads. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>