Last change
on this file since afb311e was
aaad4c95,
checked in by Ricardo Ferraz Leal <ricleal@…>, 8 years ago
|
Log for tests is now on the test directory
|
-
Property mode set to
100644
|
File size:
1000 bytes
|
Line | |
---|
1 | |
---|
2 | ############################################################################### |
---|
3 | ################################### LOGGING ################################### |
---|
4 | ############################################################################### |
---|
5 | |
---|
6 | [formatters] |
---|
7 | keys=simple,detailed |
---|
8 | |
---|
9 | [formatter_simple] |
---|
10 | format=%(name)s: %(levelname)s: %(message)s |
---|
11 | |
---|
12 | [formatter_detailed] |
---|
13 | format=%(name)s: %(levelname)s %(module)s: %(lineno)d: %(message)s |
---|
14 | |
---|
15 | ############################################################################### |
---|
16 | # Handlers |
---|
17 | |
---|
18 | [handlers] |
---|
19 | keys=console,log_file |
---|
20 | |
---|
21 | [handler_console] |
---|
22 | class=logging.StreamHandler |
---|
23 | formatter=simple |
---|
24 | level=DEBUG |
---|
25 | args=tuple() |
---|
26 | |
---|
27 | [handler_log_file] |
---|
28 | class=logging.FileHandler |
---|
29 | level=INFO |
---|
30 | formatter=detailed |
---|
31 | args=('tests.log','w') |
---|
32 | |
---|
33 | ############################################################################### |
---|
34 | # Loggers |
---|
35 | |
---|
36 | [loggers] |
---|
37 | keys=root,sas |
---|
38 | |
---|
39 | [logger_root] |
---|
40 | level=DEBUG |
---|
41 | handlers=console,log_file |
---|
42 | propagate=0 |
---|
43 | |
---|
44 | [logger_sas] |
---|
45 | level=INFO |
---|
46 | qualname=sas |
---|
47 | handlers=console,log_file |
---|
48 | propagate=0 |
---|
Note: See
TracBrowser
for help on using the repository browser.