Note: We no longer publish the latest version of our code here. We primarily use a kumc-bmi github organization. The heron ETL repository, in particular, is not public. Peers in the informatics community should see MultiSiteDev for details on requesting access.

source: heron_load/heron-logging.ini @ 0:42ad7288920a

heron-michigan tip
Last change on this file since 0:42ad7288920a was 0:42ad7288920a, checked in by Matt Hoag <mhoag@…>, 6 years ago

Merge with demo_concepts_3800

File size: 818 bytes
Line 
1# see section 15.8.3. Configuration file format in
2# http://docs.python.org/2/library/logging.config.html
3[loggers]
4keys=root
5
6[logger_root]
7level=DEBUG
8qualname=heron
9handlers=console,detail
10
11[handlers]
12keys=console,detail
13
14[handler_console]
15class=structured_logging.BigStepHandler
16args=()
17formatter=timed
18level=DEBUG
19
20[handler_detail]
21level=DEBUG
22class=FileHandler
23# use detail_log_dir rather than dir to facilitate stream editing
24detail_log_dir=log
25detail_log_file=%(detail_log_dir)s/heron_load-%(today)s.log
26# append to log file
27args=('%(detail_log_file)s', 'a')
28# overwrite log file
29#args=('%(detail_log_file)s', 'w')
30formatter=csv
31
32[formatters]
33keys=timed,csv
34
35[formatter_timed]
36format=%(asctime)s %(levelname)s %(name)s %(message)s
37class=logging.Formatter
38
39[formatter_csv]
40class=structured_logging.CSVFormatter
Note: See TracBrowser for help on using the repository browser.