2017-12-13 22 views

答えて

0

(パイソン3 に)画面にロガー出力を印刷するコードでこの行を追加:

import logging 

level = logging.INFO 
format = ' %(message)s' 
handlers = [logging.FileHandler('filename.log'), logging.StreamHandler()] 
logging.basicConfig(level = level, format = format, handlers = handlers) 

logging.info('Printing on screen.') 
関連する問題