source: sasview/src/sas/logging.ini @ 412e069e

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 412e069e 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
RevLine 
[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]
9keys=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]14format=%(asctime)s - %(levelname)s : %(name)s:%(lineno)4d: %(message)s
15datefmt=%H:%M:%S
16
[6722fae]17[formatter_detailed]
[fc22533]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
[6722fae]20
21###############################################################################
22# Handlers
23
24[handlers]
25keys=console,log_file
26
27[handler_console]
28class=logging.StreamHandler
29formatter=simple
[38beeab]30level=WARNING
[6722fae]31args=tuple()
32
33[handler_log_file]
34class=logging.FileHandler
[38beeab]35level=DEBUG
[6722fae]36formatter=detailed
37args=(os.path.join(os.path.expanduser("~"),'sasview.log'),"a")
38
39###############################################################################
40# Loggers
41
42[loggers]
[64ca561]43keys=root,saspr,sasgui,sascalc,sasmodels
[6722fae]44
45[logger_root]
[38beeab]46level=DEBUG
[6722fae]47formatter=default
48handlers=console,log_file
49
[64ca561]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
[6722fae]62[logger_sasgui]
[38beeab]63level=DEBUG
[6722fae]64qualname=sas.sasgui
65handlers=console,log_file
[64ca561]66propagate=0
67
[6722fae]68[logger_sascalc]
[64ca561]69level=INFO
[6722fae]70qualname=sas.sascalc
[c155a16]71handlers=console,log_file
[64ca561]72propagate=0
[c155a16]73
Note: See TracBrowser for help on using the repository browser.