Skip to content

Commit

Permalink
Update logging config to avoid log duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Oct 26, 2023
1 parent 9f4ef72 commit 58ab1ec
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions res/logging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
keys=root,analyzerApp

[handlers]
keys=fileHandler, consoleHandler
keys=fileHandler, consoleHandler, rootConsoleHandler

[formatters]
keys=myFormatter

[logger_root]
level=CRITICAL
handlers=consoleHandler
handlers=rootConsoleHandler

[logger_analyzerApp]
level=DEBUG
Expand All @@ -18,9 +18,14 @@ level=DEBUG
handlers=consoleHandler
qualname=analyzerApp

[handler_rootConsoleHandler]
level=CRITICAL
class=StreamHandler
formatter=myFormatter
args=(sys.stdout,)

[handler_consoleHandler]
class=StreamHandler
level=DEBUG
formatter=myFormatter
args=(sys.stdout,)

Expand Down

0 comments on commit 58ab1ec

Please sign in to comment.