Created
October 11, 2012 03:07
-
-
Save shimizukawa/3869931 to your computer and use it in GitHub Desktop.
Pythonのlogging設定を設定ファイルに書く例。PasteDeployで使われるiniに追記とかする
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;####################### | |
; logger setting | |
[loggers] | |
keys=root | |
[handlers] | |
keys=hand01 | |
[formatters] | |
keys=form01 | |
[logger_root] | |
level=INFO | |
handlers=hand01 | |
[handler_hand01] | |
class=FileHandler | |
level=INFO | |
formatter=form01 | |
args=('python.log', 'w') | |
[formatter_form01] | |
format=F1 %(asctime)s %(levelname)s %(message)s | |
datefmt= | |
class=logging.Formatter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment