Why are the log files on LiV Pi so large?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Why are the log files on LiV Pi so large?

AlfredC
Administrator
This post was updated on .
All LiV Pi processes have logs files where error and debug info is printed during operation.

Out of the box, the log level in the Python logs "logging.ini" configuration file is set to INFO, so you will see a lot of data in your logs. If you don't need that much info, you can change the level to WARNING or ERROR.

If the log file is getting really large, you can modify the "args=('livLCD.log', 'a')" line to "args=('livLCD.log', 'w')": this way instead of appending new lines in the log file, the log is created every time that LiV process starts.

More on Python logs here: https://docs.python.org/2/library/logging.html

 
Reply | Threaded
Open this post in threaded view
|

Re: Why are the log files on LiV Pi so large?

blk_kt
hmm... this setting doesn't work for me.
any ideas how to fix this? I think I could manually delete the logs from time to time.
Reply | Threaded
Open this post in threaded view
|

Re: Why are the log files on LiV Pi so large?

blk_kt
Never mind. I was looking at the wrong directory. It works. My mistake.