2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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 :)
répondu il y a 8 mois
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?
répondu il y a 8 mois
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a 5 jours
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 4 mois