May-14-2019, 03:48 AM
Hello,
I am writing a program with a lot of print() so I use the module logging for debugging purposes. The problem is that when I put logging.debug('some text') in the code, it dumps debugging information when it feels like instead of when it is supposed happen in the code, like a print. How to get my logging behave like a print?
I am writing a program with a lot of print() so I use the module logging for debugging purposes. The problem is that when I put logging.debug('some text') in the code, it dumps debugging information when it feels like instead of when it is supposed happen in the code, like a print. How to get my logging behave like a print?