Blame mock/logging.ini

Karanbir Singh 517908
[formatters]
Karanbir Singh 517908
keys: detailed,simple,unadorned,state
Karanbir Singh 517908
Karanbir Singh 517908
[handlers]
Karanbir Singh 517908
keys: simple_console,detailed_console,unadorned_console,simple_console_warnings_only
Karanbir Singh 517908
Karanbir Singh 517908
[loggers]
Karanbir Singh 517908
keys: root,build,state,mockbuild
Karanbir Singh 517908
Karanbir Singh 517908
[formatter_state]
Karanbir Singh 517908
format: %(asctime)s - %(message)s
Karanbir Singh 517908
Karanbir Singh 517908
[formatter_unadorned]
Karanbir Singh 517908
format: %(message)s
Karanbir Singh 517908
Karanbir Singh 517908
[formatter_simple]
Karanbir Singh 517908
format: %(levelname)s: %(message)s
Karanbir Singh 517908
Karanbir Singh 517908
;useful for debugging:
Karanbir Singh 517908
[formatter_detailed]
Karanbir Singh 517908
format: %(levelname)s %(filename)s:%(lineno)d:  %(message)s
Karanbir Singh 517908
Karanbir Singh 517908
[handler_unadorned_console]
Karanbir Singh 517908
class: StreamHandler
Karanbir Singh 517908
args: []
Karanbir Singh 517908
formatter: unadorned
Karanbir Singh 517908
level: INFO
Karanbir Singh 517908
Karanbir Singh 517908
[handler_simple_console]
Karanbir Singh 517908
class: StreamHandler
Karanbir Singh 517908
args: []
Karanbir Singh 517908
formatter: simple
Karanbir Singh 517908
level: INFO
Karanbir Singh 517908
Karanbir Singh 517908
[handler_simple_console_warnings_only]
Karanbir Singh 517908
class: StreamHandler
Karanbir Singh 517908
args: []
Karanbir Singh 517908
formatter: simple
Karanbir Singh 517908
level: WARNING
Karanbir Singh 517908
Karanbir Singh 517908
[handler_detailed_console]
Karanbir Singh 517908
class: StreamHandler
Karanbir Singh 517908
args: []
Karanbir Singh 517908
formatter: detailed
Karanbir Singh 517908
level: WARNING
Karanbir Singh 517908
Karanbir Singh 517908
; usually dont want to set a level for loggers
Karanbir Singh 517908
; this way all handlers get all messages, and messages can be filtered
Karanbir Singh 517908
; at the handler level
Karanbir Singh 517908
;
Karanbir Singh 517908
; all these loggers default to a console output handler
Karanbir Singh 517908
;
Karanbir Singh 517908
[logger_root]
Karanbir Singh 517908
level: NOTSET
Karanbir Singh 517908
handlers: simple_console
Karanbir Singh 517908
Karanbir Singh 517908
; mockbuild logger normally has no output
Karanbir Singh 517908
;  catches stuff like mockbuild.trace_decorator and mockbuild.util
Karanbir Singh 517908
;  dont normally want to propagate to root logger, either
Karanbir Singh 517908
[logger_mockbuild]
Karanbir Singh 517908
level: NOTSET
Karanbir Singh 517908
handlers:
Karanbir Singh 517908
qualname: mockbuild
Karanbir Singh 517908
propagate: 1
Karanbir Singh 517908
Karanbir Singh 517908
[logger_state]
Karanbir Singh 517908
level: NOTSET
Karanbir Singh 517908
; unadorned_console only outputs INFO or above
Karanbir Singh 517908
handlers: unadorned_console
Karanbir Singh 517908
qualname: mockbuild.Root.state
Karanbir Singh 517908
propagate: 0
Karanbir Singh 517908
Karanbir Singh 517908
[logger_build]
Karanbir Singh 517908
level: NOTSET
Karanbir Singh 517908
handlers: simple_console_warnings_only
Karanbir Singh 517908
qualname: mockbuild.Root.build
Karanbir Singh 517908
propagate: 0
Karanbir Singh 517908
Karanbir Singh 517908
; the following is a list mock logger qualnames used within the code:
Karanbir Singh 517908
;
Karanbir Singh 517908
;  qualname: mockbuild.util
Karanbir Singh 517908
;  qualname: mockbuild.uid
Karanbir Singh 517908
;  qualname: mockbuild.trace_decorator
Karanbir Singh 517908