2 Respuestas
- Más nuevo
- Más votos
- Más comentarios
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 :)
respondido hace 7 meses
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?
respondido hace 7 meses
Contenido relevante
- OFICIAL DE AWSActualizada hace 7 meses