magnetic_scattrelease-4.2.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since b6f9c9f was
7c105e8,
checked in by Paul Kienzle <pkienzle@…>, 8 years ago
|
make run.py work again
|
-
Property mode set to
100644
|
File size:
1.7 KB
|
Line | |
---|
1 | |
---|
2 | ############################################################################### |
---|
3 | ################################### LOGGING ################################### |
---|
4 | ############################################################################### |
---|
5 | # Main logger for SASView |
---|
6 | |
---|
7 | # SEE: https://docs.python.org/2/library/logging.html#logrecord-attributes |
---|
8 | [formatters] |
---|
9 | keys=simple,detailed |
---|
10 | |
---|
11 | [formatter_simple] |
---|
12 | #format=%(asctime)s - %(name)s - %(levelname)s - %(message)s |
---|
13 | #format=%(asctime)s - %(levelname)s : %(name)s:%(pathname)s:%(lineno)4d: %(message)s |
---|
14 | format=%(asctime)s - %(levelname)s : %(name)s:%(lineno)4d: %(message)s |
---|
15 | datefmt=%H:%M:%S |
---|
16 | |
---|
17 | [formatter_detailed] |
---|
18 | #format=%(asctime)s : %(levelname)s : %(name)s: %(lineno)d: %(message)s |
---|
19 | format=%(asctime)s : %(levelname)s : %(name)s (%(filename)s:%(lineno)s) :: %(message)s |
---|
20 | |
---|
21 | ############################################################################### |
---|
22 | # Handlers |
---|
23 | |
---|
24 | [handlers] |
---|
25 | keys=console,log_file |
---|
26 | |
---|
27 | [handler_console] |
---|
28 | class=logging.StreamHandler |
---|
29 | formatter=simple |
---|
30 | level=WARNING |
---|
31 | args=tuple() |
---|
32 | |
---|
33 | [handler_log_file] |
---|
34 | class=logging.FileHandler |
---|
35 | level=DEBUG |
---|
36 | formatter=detailed |
---|
37 | args=(os.path.join(os.path.expanduser("~"),'sasview.log'),"a") |
---|
38 | |
---|
39 | ############################################################################### |
---|
40 | # Loggers |
---|
41 | |
---|
42 | [loggers] |
---|
43 | keys=root,saspr,sasgui,sascalc,sasmodels |
---|
44 | |
---|
45 | [logger_root] |
---|
46 | level=DEBUG |
---|
47 | formatter=default |
---|
48 | handlers=console,log_file |
---|
49 | |
---|
50 | [logger_sasmodels] |
---|
51 | level=INFO |
---|
52 | qualname=sas.models |
---|
53 | handlers=console,log_file |
---|
54 | propagate=0 |
---|
55 | |
---|
56 | [logger_saspr] |
---|
57 | level=INFO |
---|
58 | qualname=sas.pr |
---|
59 | handlers=console,log_file |
---|
60 | propagate=0 |
---|
61 | |
---|
62 | [logger_sasgui] |
---|
63 | level=DEBUG |
---|
64 | qualname=sas.sasgui |
---|
65 | handlers=console,log_file |
---|
66 | propagate=0 |
---|
67 | |
---|
68 | [logger_sascalc] |
---|
69 | level=INFO |
---|
70 | qualname=sas.sascalc |
---|
71 | handlers=console,log_file |
---|
72 | propagate=0 |
---|
73 | |
---|
Note: See
TracBrowser
for help on using the repository browser.