df5f04c58a
- Changed all formats to look more like the default formatters. This simplifies parsing in tools like logstash etc. - Changed location of all log files to end up in /var/log instead of /tmp. /var/log is a better default than /tmp for log files. - In wf_trace_conf_logging.conf.sample using separate formatters for different handlers. This accounts for the usecase of each handler having its own specific log format to reduce redundancy in log statements. Change-Id: I467f4d493cd379c11cf7e5e872e4baa4faeac674 Closes-Bug: 1322740
33 lines
591 B
Plaintext
33 lines
591 B
Plaintext
[loggers]
|
|
keys=root
|
|
|
|
[handlers]
|
|
keys=consoleHandler, fileHandler
|
|
|
|
[formatters]
|
|
keys=verboseFormatter, simpleFormatter
|
|
|
|
[logger_root]
|
|
level=DEBUG
|
|
handlers=consoleHandler, fileHandler
|
|
|
|
[handler_consoleHandler]
|
|
class=StreamHandler
|
|
level=INFO
|
|
formatter=simpleFormatter
|
|
args=(sys.stdout,)
|
|
|
|
[handler_fileHandler]
|
|
class=FileHandler
|
|
level=INFO
|
|
formatter=verboseFormatter
|
|
args=("/var/log/mistral.log",)
|
|
|
|
[formatter_verboseFormatter]
|
|
format=%(asctime)s %(thread)s %(levelname)s %(module)s [-] %(message)s
|
|
datefmt=
|
|
|
|
[formatter_simpleFormatter]
|
|
format=%(asctime)s %(levelname)s [-] %(message)s
|
|
datefmt=
|