6ffa59c881
The tempest log can help developers analyze tests but there is no option in run_tests.sh to enable logging output now. This adds a logging configuration file and options in run_test.sh and enables developers to get the tempest log more easily. Implements: blueprint add-logging-configuration Change-Id: Iee68a34f5771f1bff88110d95538a5b43103ced9
31 lines
448 B
Plaintext
31 lines
448 B
Plaintext
[loggers]
|
|
keys=root
|
|
|
|
[formatters]
|
|
keys=normal,debug
|
|
|
|
[handlers]
|
|
keys=file,devel
|
|
|
|
[logger_root]
|
|
level=NOTSET
|
|
handlers=file
|
|
|
|
[handler_file]
|
|
class=FileHandler
|
|
level=DEBUG
|
|
formatter=normal
|
|
args=('tempest.log', 'w')
|
|
|
|
[handler_devel]
|
|
class=StreamHandler
|
|
level=DEBUG
|
|
formatter=debug
|
|
args=(sys.stdout,)
|
|
|
|
[formatter_normal]
|
|
format=%(asctime)s %(levelname)s %(message)s
|
|
|
|
[formatter_debug]
|
|
format=%(asctime)s %(levelname)s %(module)s %(funcName)s %(message)s
|