Skip to content

Instantly share code, notes, and snippets.

@shimizukawa
Created October 11, 2012 03:07
Show Gist options
  • Save shimizukawa/3869931 to your computer and use it in GitHub Desktop.
Save shimizukawa/3869931 to your computer and use it in GitHub Desktop.
Pythonのlogging設定を設定ファイルに書く例。PasteDeployで使われるiniに追記とかする
;#######################
; 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