mistral/etc/logging.conf.sample
manasdk df5f04c58a Updates logging configuration samples
- 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
2014-12-17 01:34:27 +00:00

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=