Stress runner friendly logging.conf.sample

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
This commit is contained in:
Attila Fazekas 2014-02-24 10:13:58 +01:00
parent 173476fe7f
commit 54236ee3e9

View File

@ -1,46 +1,40 @@
[loggers]
keys=root,tempest,tempest_stress
keys=root,tempest_stress
[handlers]
keys=file,syslog,devel
keys=file,devel,syslog
[formatters]
keys=default,tests
keys=simple,tests
[logger_root]
level=NOTSET
handlers=syslog
[logger_tempest]
level=DEBUG
handlers=file
qualname=tempest
[logger_tempest_stress]
level=INFO
level=DEBUG
handlers=file,devel
qualname=tempest.stress
[handler_file]
class=FileHandler
level=DEBUG
args=('tempest.log', 'w+')
formatter=tests
args=('tempest.log', 'w')
[handler_syslog]
class=handlers.SysLogHandler
level=ERROR
formatter = default
args = ('/dev/log', handlers.SysLogHandler.LOG_USER)
[handler_devel]
class=StreamHandler
level=DEBUG
formatter=default
args=(sys.stdout,)
[formatter_default]
format=%(name)s: %(levelname)s: %(message)s
formatter=simple
[formatter_tests]
class = tempest.common.log.TestsFormatter
class = tempest.openstack.common.log.ContextFormatter
[formatter_simple]
format=%(asctime)s.%(msecs)03d %(process)d %(levelname)s: %(message)s