mistral/etc/wf_trace_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

48 lines
919 B
Plaintext

[loggers]
keys=workflow_trace,root
[handlers]
keys=consoleHandler, wfTraceFileHandler, fileHandler
[formatters]
keys=wfFormatter, simpleFormatter, verboseFormatter
[logger_workflow_trace]
level=INFO
handlers=consoleHandler, wfTraceFileHandler
qualname=workflow_trace
[logger_root]
level=INFO
handlers=fileHandler
[handler_fileHandler]
class=FileHandler
level=INFO
formatter=verboseFormatter
args=("/var/log/mistral.log",)
[handler_consoleHandler]
class=StreamHandler
level=INFO
formatter=simpleFormatter
args=(sys.stdout,)
[handler_wfTraceFileHandler]
class=FileHandler
level=INFO
formatter=wfFormatter
args=("/var/log/mistral_wf_trace.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=
[formatter_wfFormatter]
format=%(asctime)s WF [-] %(message)s
datefmt=