2回答
- 新しい順
- 投票が多い順
- コメントが多い順
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 :)
回答済み 7ヶ月前
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?
回答済み 7ヶ月前
関連するコンテンツ
- 質問済み 6年前