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] [loggers]
keys=root,tempest,tempest_stress keys=root,tempest_stress
[handlers] [handlers]
keys=file,syslog,devel keys=file,devel,syslog
[formatters] [formatters]
keys=default,tests keys=simple,tests
[logger_root] [logger_root]
level=NOTSET
handlers=syslog
[logger_tempest]
level=DEBUG level=DEBUG
handlers=file handlers=file
qualname=tempest
[logger_tempest_stress] [logger_tempest_stress]
level=INFO level=DEBUG
handlers=file,devel handlers=file,devel
qualname=tempest.stress qualname=tempest.stress
[handler_file] [handler_file]
class=FileHandler class=FileHandler
level=DEBUG level=DEBUG
args=('tempest.log', 'w+')
formatter=tests formatter=tests
args=('tempest.log', 'w')
[handler_syslog] [handler_syslog]
class=handlers.SysLogHandler class=handlers.SysLogHandler
level=ERROR level=ERROR
formatter = default
args = ('/dev/log', handlers.SysLogHandler.LOG_USER) args = ('/dev/log', handlers.SysLogHandler.LOG_USER)
[handler_devel] [handler_devel]
class=StreamHandler class=StreamHandler
level=DEBUG level=DEBUG
formatter=default
args=(sys.stdout,) args=(sys.stdout,)
formatter=simple
[formatter_default]
format=%(name)s: %(levelname)s: %(message)s
[formatter_tests] [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