Jun-27-2018, 01:29 PM
is there any way in python such that we can log in the logger file only when enable_log="true"
i have used a file handler to create a log file
i have used a file handler to create a log file
logger
|
Jun-27-2018, 01:29 PM
is there any way in python such that we can log in the logger file only when enable_log="true"
i have used a file handler to create a log file
add file handler only if enable_log is True
or you can specify different levels, e.g. DEBUG for file handler
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link Create MCV example Debug small programs
Jun-27-2018, 05:32 PM
Jun-27-2018, 07:12 PM
better show us your code
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link Create MCV example Debug small programs |
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
data push from logger to server | asdfasdf | 2 | 3,755 |
May-02-2017, 11:32 AM Last Post: snippsat |