source: sasview/sasview/logging.ini @ 64ca561

ESS_GUIESS_GUI_DocsESS_GUI_PrESS_GUI_Pr_fixesESS_GUI_corfESS_GUI_iss1032ESS_GUI_iss1033ESS_GUI_iss1034ESS_GUI_iss1052ESS_GUI_iss879ESS_GUI_iss957ESS_GUI_iss959ESS_GUI_iss966ESS_GUI_iss976ESS_GUI_poly_plot2SVCC-1SasView-664bad_file_loader_fixcostrafo411ticket-1094-headlessticket-1111ticket-818ticket-933ticket885unittest-saveloadwin64bit_conda_vm
Last change on this file since 64ca561 was 64ca561, checked in by Ricardo Ferraz Leal <ricleal@…>, 18 months ago

Log not repeated any longer

  • 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:%(name)s:%(levelname)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=INFO
30args=tuple()
31
32[handler_log_file]
33class=logging.FileHandler
34level=INFO
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=INFO
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=INFO
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.