8b4d2f6128
* Created new log configuration for pretty workflow output. * Since this config opt is used before importing executor.server, I include some refactor of unit tests. Implements blueprint mistral-pretty-workflow-logging Change-Id: Ia9b8b5d401afafe99d6133685a4d3abbcb8ba2e3
40 lines
698 B
Plaintext
40 lines
698 B
Plaintext
[loggers]
|
|
keys=workflow_trace,root
|
|
|
|
[handlers]
|
|
keys=consoleHandler, prettyFileHandler, fileHandler
|
|
|
|
[formatters]
|
|
keys=simpleFormatter
|
|
|
|
[logger_workflow_trace]
|
|
level=INFO
|
|
handlers=consoleHandler, fileHandler
|
|
qualname=workflow_trace
|
|
|
|
[logger_root]
|
|
level=INFO
|
|
handlers=fileHandler
|
|
|
|
[handler_fileHandler]
|
|
class=FileHandler
|
|
level=INFO
|
|
formatter=simpleFormatter
|
|
args=("/tmp/mistral.log",)
|
|
|
|
[handler_consoleHandler]
|
|
class=StreamHandler
|
|
level=INFO
|
|
formatter=simpleFormatter
|
|
args=(sys.stdout,)
|
|
|
|
[handler_prettyFileHandler]
|
|
class=FileHandler
|
|
level=INFO
|
|
formatter=simpleFormatter
|
|
args=("/tmp/mistral_wf_trace.log",)
|
|
|
|
|
|
[formatter_simpleFormatter]
|
|
format=%(asctime)s - WF - %(message)s
|
|
datefmt=%y-%m-%d %H:%M:%S |