Skip to content

Commit

Permalink
Updating logging.conf to solve duplicate log lines issue
Browse files Browse the repository at this point in the history
  • Loading branch information
julia326 committed Oct 7, 2016
1 parent beab769 commit 303068c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions pyensembl/logging.conf
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
[loggers]
keys=root,pyensembl
keys=root,pyensembl,datacache

[formatters]
keys=simpleFormatter

[handlers]
keys=consoleHandler
keys=consoleHandler,consoleHandlerCritical

[logger_root]
level=DEBUG
handlers=consoleHandler
level=INFO
handlers=consoleHandlerCritical

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

[handler_consoleHandlerCritical] # only for root logger: essentially silent
class=StreamHandler
level=CRITICAL
formatter=simpleFormatter
args=(sys.stdout,)

[formatter_simpleFormatter]
format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
datefmt=
Expand Down

0 comments on commit 303068c

Please sign in to comment.