2 Risposte
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
0
Could you please try with the following piece of code:
self.logger.setLevel(logging.DEBUG) ... console_handler = logging.StreamHandler(sys.stdout) console_handler.setLevel(logging.DEBUG)
Thank you :)
con risposta 7 mesi fa
0
I tried this with sys.stdout. But this print all the log levels on both output log and error log. I want to print logger.info() into output log and logger.error() in error log. Is there a way to print that?
con risposta 7 mesi fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 3 anni fa