source:
sasview/test/logging.ini
@
9e0dd49
Last change on this file since 9e0dd49 was aaad4c95, checked in by Ricardo Ferraz Leal <ricleal@…>, 8 years ago | |
---|---|
|
|
File size: 1000 bytes |
Rev | Line | |
---|---|---|
[c155a16] | 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 | |
[aaad4c95] | 31 | args=('tests.log','w') |
[c155a16] | 32 | |
33 | ############################################################################### | |
34 | # Loggers | |
35 | ||
36 | [loggers] | |
[ebb0a55] | 37 | keys=root,sas |
[c155a16] | 38 | |
[ebb0a55] | 39 | [logger_root] |
[c155a16] | 40 | level=DEBUG |
41 | handlers=console,log_file | |
[ebb0a55] | 42 | propagate=0 |
[c155a16] | 43 | |
44 | [logger_sas] | |
45 | level=INFO | |
46 | qualname=sas | |
[ebb0a55] | 47 | handlers=console,log_file |
48 | propagate=0 |
Note: See TracBrowser
for help on using the repository browser.