【Python】ログを出力する
ログを画面にコンソールに出力していきます。
1 2 3 4 5 6 7 8 9 10 11 |
>>> import logging >>> logging.debug('this is a debug message') >>> logging.info('this is a info message') >>> logging.warn('this is a warning message') WARNING:root:this is a warning message >>> logging.error('this is a error message') ERROR:root:this is a error message >>> >>> logging.critical('this is a critical message') CRITICAL:root:this is a critical message >>> |