Last change
on this file since afb311e 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
|
Rev | Line | |
---|
[6722fae] | 1 | |
---|
| 2 | ############################################################################### |
---|
| 3 | ################################### LOGGING ################################### |
---|
| 4 | ############################################################################### |
---|
[64ca561] | 5 | # Main logger for SASView |
---|
[6722fae] | 6 | |
---|
[64ca561] | 7 | # SEE: https://docs.python.org/2/library/logging.html#logrecord-attributes |
---|
[6722fae] | 8 | [formatters] |
---|
| 9 | keys=simple,detailed |
---|
| 10 | |
---|
| 11 | [formatter_simple] |
---|
[463e7ffc] | 12 | #format=%(asctime)s - %(name)s - %(levelname)s - %(message)s |
---|
[64ca561] | 13 | #format=%(asctime)s - %(levelname)s : %(name)s:%(pathname)s:%(lineno)4d: %(message)s |
---|
[463e7ffc] | 14 | format=%(asctime)s - %(levelname)s : %(name)s:%(lineno)4d: %(message)s |
---|
| 15 | datefmt=%H:%M:%S |
---|
| 16 | |
---|
[6722fae] | 17 | [formatter_detailed] |
---|
[fc22533] | 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 |
---|
[6722fae] | 20 | |
---|
| 21 | ############################################################################### |
---|
| 22 | # Handlers |
---|
| 23 | |
---|
| 24 | [handlers] |
---|
| 25 | keys=console,log_file |
---|
| 26 | |
---|
| 27 | [handler_console] |
---|
| 28 | class=logging.StreamHandler |
---|
| 29 | formatter=simple |
---|
[38beeab] | 30 | level=WARNING |
---|
[6722fae] | 31 | args=tuple() |
---|
| 32 | |
---|
| 33 | [handler_log_file] |
---|
| 34 | class=logging.FileHandler |
---|
[38beeab] | 35 | level=DEBUG |
---|
[6722fae] | 36 | formatter=detailed |
---|
| 37 | args=(os.path.join(os.path.expanduser("~"),'sasview.log'),"a") |
---|
| 38 | |
---|
| 39 | ############################################################################### |
---|
| 40 | # Loggers |
---|
| 41 | |
---|
| 42 | [loggers] |
---|
[64ca561] | 43 | keys=root,saspr,sasgui,sascalc,sasmodels |
---|
[6722fae] | 44 | |
---|
| 45 | [logger_root] |
---|
[38beeab] | 46 | level=DEBUG |
---|
[6722fae] | 47 | formatter=default |
---|
| 48 | handlers=console,log_file |
---|
| 49 | |
---|
[64ca561] | 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 | |
---|
[6722fae] | 62 | [logger_sasgui] |
---|
[38beeab] | 63 | level=DEBUG |
---|
[6722fae] | 64 | qualname=sas.sasgui |
---|
| 65 | handlers=console,log_file |
---|
[64ca561] | 66 | propagate=0 |
---|
| 67 | |
---|
[6722fae] | 68 | [logger_sascalc] |
---|
[64ca561] | 69 | level=INFO |
---|
[6722fae] | 70 | qualname=sas.sascalc |
---|
[c155a16] | 71 | handlers=console,log_file |
---|
[64ca561] | 72 | propagate=0 |
---|
[c155a16] | 73 | |
---|
Note: See
TracBrowser
for help on using the repository browser.