Skip to content
Permalink
Browse files

Added logging to file

  • Loading branch information...
Kurocon committed Apr 22, 2016
1 parent 3428bb4 commit 26feaf07ba02677baf4b72d73c61c6801b295904
Showing with 10 additions and 4 deletions.
  1. +10 −4 logging.conf
@@ -2,21 +2,27 @@
keys=root

[handlers]
keys=consoleHandler
keys=consoleHandler,fileHandler

[formatters]
keys=simpleFormatter

[logger_root]
level=WARNING
handlers=consoleHandler
level=DEBUG
handlers=consoleHandler,fileHandler

[handler_consoleHandler]
class=StreamHandler
level=WARNING
level=INFO
formatter=simpleFormatter
args=(sys.stdout,)

[handler_fileHandler]
class=FileHandler
level=INFO
formatter=simpleFormatter
args=["oce.log", "w"]

[formatter_simpleFormatter]
format=%(created)f - %(thread)d (%(name)s) - [%(levelname)s] %(message)s

0 comments on commit 26feaf0

Please sign in to comment.
You can’t perform that action at this time.