source: sasview/sasview/logging.ini @ 38beeab

ESS_GUIESS_GUI_CategroyManagerESS_GUI_DocsESS_GUI_PrESS_GUI_corfESS_GUI_model_editorESS_GUI_py2_OLDESS_GUI_reportingSVCC-1SasView-664costrafo411ticket-1069ticket-1094-headlessticket-818ticket-976ticket885ticket885bunittest-saveloadwin64bit_conda_vm
Last change on this file since 38beeab was 38beeab, checked in by Ricardo Ferraz Leal <ricleal@…>, 15 months ago

Logger is now a separate file

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