终端日志输出改为sys.stderr

This commit is contained in:
shmilylty
2019-08-08 11:53:38 +08:00
parent 3e004dd069
commit f5ba141097
+1 -1
View File
@@ -192,6 +192,6 @@ logger.level(name='ALERT', no=30, color='<yellow><bold>', icon='⚠️')
logger.level(name='ERROR', no=40, color='<red><bold>', icon='❌️')
logger.level(name='FATAL', no=50, color='<RED><bold>', icon='☠️')
logger.add(sys.stdout, level='INFOR', format=stdout_fmt, enqueue=True)
logger.add(sys.stderr, level='INFOR', format=stdout_fmt, enqueue=True)
logger.add(log_path, level='TRACE', format=logfile_fmt, enqueue=True,
encoding='utf-8')