source: sasview/src/sas/logging.ini @ 73a24fa

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change on this file since 73a24fa 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]
9keys=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
14format=%(asctime)s - %(levelname)s : %(name)s:%(lineno)4d: %(message)s
15datefmt=%H:%M:%S
16
17[formatter_detailed]
18#format=%(asctime)s : %(levelname)s : %(name)s: %(lineno)d: %(message)s
19format=%(asctime)s : %(levelname)s : %(name)s (%(filename)s:%(lineno)s) :: %(message)s
20
21###############################################################################
22# Handlers
23
24[handlers]
25keys=console,log_file
26
27[handler_console]
28class=logging.StreamHandler
29formatter=simple
30level=WARNING
31args=tuple()
32
33[handler_log_file]
34class=logging.FileHandler
35level=DEBUG
36formatter=detailed
37args=(os.path.join(os.path.expanduser("~"),'sasview.log'),"a")
38
39###############################################################################
40# Loggers
41
42[loggers]
43keys=root,saspr,sasgui,sascalc,sasmodels
44
45[logger_root]
46level=DEBUG
47formatter=default
48handlers=console,log_file
49
50[logger_sasmodels]
51level=INFO
52qualname=sas.models
53handlers=console,log_file
54propagate=0
55
56[logger_saspr]
57level=INFO
58qualname=sas.pr
59handlers=console,log_file
60propagate=0
61
62[logger_sasgui]
63level=DEBUG
64qualname=sas.sasgui
65handlers=console,log_file
66propagate=0
67
68[logger_sascalc]
69level=INFO
70qualname=sas.sascalc
71handlers=console,log_file
72propagate=0
73
Note: See TracBrowser for help on using the repository browser.