Add initial code
[ta/build-tools.git] / mock / logging.ini
1 [formatters]
2 keys: detailed,simple,unadorned,state
3
4 [handlers]
5 keys: simple_console,detailed_console,unadorned_console,simple_console_warnings_only
6
7 [loggers]
8 keys: root,build,state,mockbuild
9
10 [formatter_state]
11 format: %(asctime)s - %(message)s
12
13 [formatter_unadorned]
14 format: %(message)s
15
16 [formatter_simple]
17 format: %(levelname)s: %(message)s
18
19 ;useful for debugging:
20 [formatter_detailed]
21 format: %(levelname)s %(filename)s:%(lineno)d:  %(message)s
22
23 [handler_unadorned_console]
24 class: StreamHandler
25 args: []
26 formatter: unadorned
27 level: INFO
28
29 [handler_simple_console]
30 class: StreamHandler
31 args: []
32 formatter: simple
33 level: INFO
34
35 [handler_simple_console_warnings_only]
36 class: StreamHandler
37 args: []
38 formatter: simple
39 level: WARNING
40
41 [handler_detailed_console]
42 class: StreamHandler
43 args: []
44 formatter: detailed
45 level: WARNING
46
47 ; usually dont want to set a level for loggers
48 ; this way all handlers get all messages, and messages can be filtered
49 ; at the handler level
50 ;
51 ; all these loggers default to a console output handler
52 ;
53 [logger_root]
54 level: NOTSET
55 handlers: simple_console
56
57 ; mockbuild logger normally has no output
58 ;  catches stuff like mockbuild.trace_decorator and mockbuild.util
59 ;  dont normally want to propagate to root logger, either
60 [logger_mockbuild]
61 level: NOTSET
62 handlers:
63 qualname: mockbuild
64 propagate: 1
65
66 [logger_state]
67 level: NOTSET
68 ; unadorned_console only outputs INFO or above
69 handlers: unadorned_console
70 qualname: mockbuild.Root.state
71 propagate: 0
72
73 [logger_build]
74 level: NOTSET
75 handlers: simple_console_warnings_only
76 qualname: mockbuild.Root.build
77 propagate: 0
78
79 ; the following is a list mock logger qualnames used within the code:
80 ;
81 ;  qualname: mockbuild.util
82 ;  qualname: mockbuild.uid
83 ;  qualname: mockbuild.trace_decorator
84