|
a/ForgeWiki/test.ini |
|
b/ForgeWiki/test.ini |
|
... |
|
... |
59 |
|
59 |
|
60 |
[loggers]
|
60 |
[loggers]
|
61 |
keys = root, pyforge, sqlalchemy
|
61 |
keys = root, pyforge, sqlalchemy
|
62 |
|
62 |
|
63 |
[handlers]
|
63 |
[handlers]
|
64 |
keys = console
|
64 |
keys = test
|
65 |
|
65 |
|
66 |
[formatters]
|
66 |
[formatters]
|
67 |
keys = generic
|
67 |
keys = generic
|
68 |
|
68 |
|
69 |
# If you create additional loggers, add them as a key to [loggers]
|
69 |
# If you create additional loggers, add them as a key to [loggers]
|
70 |
[logger_root]
|
70 |
[logger_root]
|
71 |
level = INFO
|
71 |
level = INFO
|
72 |
handlers = console
|
72 |
handlers = test
|
73 |
|
73 |
|
74 |
[logger_pyforge]
|
74 |
[logger_pyforge]
|
75 |
level = DEBUG
|
75 |
level = DEBUG
|
76 |
handlers =
|
76 |
handlers =
|
77 |
qualname = pyforge
|
77 |
qualname = pyforge
|
|
... |
|
... |
84 |
# "level = DEBUG" logs SQL queries and results.
|
84 |
# "level = DEBUG" logs SQL queries and results.
|
85 |
# "level = WARN" logs neither. (Recommended for production systems.)
|
85 |
# "level = WARN" logs neither. (Recommended for production systems.)
|
86 |
|
86 |
|
87 |
|
87 |
|
88 |
# If you create additional handlers, add them as a key to [handlers]
|
88 |
# If you create additional handlers, add them as a key to [handlers]
|
89 |
[handler_console]
|
89 |
[handler_test]
|
90 |
class = StreamHandler
|
90 |
class = FileHandler
|
91 |
args = (sys.stderr,)
|
91 |
args = ('test.log',)
|
92 |
level = NOTSET
|
92 |
level = NOTSET
|
93 |
formatter = generic
|
93 |
formatter = generic
|
94 |
|
94 |
|
95 |
# If you create additional formatters, add them as a key to [formatters]
|
95 |
# If you create additional formatters, add them as a key to [formatters]
|
96 |
[formatter_generic]
|
96 |
[formatter_generic]
|