54236ee3e9
tempest.common.log.TestsFormatter formatter was removed from the tempest repository. It makes the current sample config file useless. We will use the same ContextFormatter in the sample config as we use in the normal runs. The tempest.log file will be appended, instead of replacing. The summary of the stress runs will be printed to the stdout. The syslog handler preserved in the sample config, but it is not in use anymore. If someone want to use, he can enable it by little change. NOTE: You need change tempest.conf [DEFAULT]/log_config_append to point a valid logging config, if you would like to use special log related configuration. Change-Id: Ic6ede3943e309a102d4af6dec505f0d4cbd3bc2b
41 lines
673 B
Plaintext
41 lines
673 B
Plaintext
[loggers]
|
|
keys=root,tempest_stress
|
|
|
|
[handlers]
|
|
keys=file,devel,syslog
|
|
|
|
[formatters]
|
|
keys=simple,tests
|
|
|
|
[logger_root]
|
|
level=DEBUG
|
|
handlers=file
|
|
|
|
[logger_tempest_stress]
|
|
level=DEBUG
|
|
handlers=file,devel
|
|
qualname=tempest.stress
|
|
|
|
[handler_file]
|
|
class=FileHandler
|
|
level=DEBUG
|
|
args=('tempest.log', 'w+')
|
|
formatter=tests
|
|
|
|
[handler_syslog]
|
|
class=handlers.SysLogHandler
|
|
level=ERROR
|
|
args = ('/dev/log', handlers.SysLogHandler.LOG_USER)
|
|
|
|
[handler_devel]
|
|
class=StreamHandler
|
|
level=DEBUG
|
|
args=(sys.stdout,)
|
|
formatter=simple
|
|
|
|
[formatter_tests]
|
|
class = tempest.openstack.common.log.ContextFormatter
|
|
|
|
[formatter_simple]
|
|
format=%(asctime)s.%(msecs)03d %(process)d %(levelname)s: %(message)s
|