Relative Content

Tag Archive for pythonlogging

Python logger compressed Time Rotating is possible?

I need my program to write a new log file every day, and so far, that’s no problem. However, I also want the files to be compressed once they are written and limited to, for example, 7 compressed files. My only doubt is whether the logger provides a method for automatic compression without having to implement it manually.

Custom value in logging_config dict python

I made a bot python app using selenium and I mostly use logging for selenium logs. I want to add my own variable into formatter but I can’t do it on my own. I was searching internet, trying different things but I always do something wrong and always get ValueError: Formatting field not found in record: 'username' error. I just want to add inGame username to the output.