Mitsuhiko Yamazaki | 6ffa59c | 2013-04-11 13:37:07 +0900 | [diff] [blame] | 1 | [loggers] |
Mitsuhiko Yamazaki | 46818aa | 2013-04-18 17:49:17 +0900 | [diff] [blame] | 2 | keys=root,tempest |
Mitsuhiko Yamazaki | 6ffa59c | 2013-04-11 13:37:07 +0900 | [diff] [blame] | 3 | |
| 4 | [handlers] |
Mitsuhiko Yamazaki | 46818aa | 2013-04-18 17:49:17 +0900 | [diff] [blame] | 5 | keys=file,syslog,devel |
| 6 | |
| 7 | [formatters] |
| 8 | keys=default,tests |
Mitsuhiko Yamazaki | 6ffa59c | 2013-04-11 13:37:07 +0900 | [diff] [blame] | 9 | |
| 10 | [logger_root] |
| 11 | level=NOTSET |
Mitsuhiko Yamazaki | 46818aa | 2013-04-18 17:49:17 +0900 | [diff] [blame] | 12 | handlers=syslog |
| 13 | |
| 14 | [logger_tempest] |
| 15 | level=DEBUG |
Mitsuhiko Yamazaki | 6ffa59c | 2013-04-11 13:37:07 +0900 | [diff] [blame] | 16 | handlers=file |
Mitsuhiko Yamazaki | 46818aa | 2013-04-18 17:49:17 +0900 | [diff] [blame] | 17 | qualname=tempest |
Mitsuhiko Yamazaki | 6ffa59c | 2013-04-11 13:37:07 +0900 | [diff] [blame] | 18 | |
| 19 | [handler_file] |
| 20 | class=FileHandler |
| 21 | level=DEBUG |
Mitsuhiko Yamazaki | 46818aa | 2013-04-18 17:49:17 +0900 | [diff] [blame] | 22 | formatter=tests |
Mitsuhiko Yamazaki | 6ffa59c | 2013-04-11 13:37:07 +0900 | [diff] [blame] | 23 | args=('tempest.log', 'w') |
| 24 | |
Mitsuhiko Yamazaki | 46818aa | 2013-04-18 17:49:17 +0900 | [diff] [blame] | 25 | [handler_syslog] |
| 26 | class=handlers.SysLogHandler |
| 27 | level=ERROR |
| 28 | formatter = default |
| 29 | args = ('/dev/log', handlers.SysLogHandler.LOG_USER) |
| 30 | |
Mitsuhiko Yamazaki | 6ffa59c | 2013-04-11 13:37:07 +0900 | [diff] [blame] | 31 | [handler_devel] |
| 32 | class=StreamHandler |
| 33 | level=DEBUG |
Mitsuhiko Yamazaki | 46818aa | 2013-04-18 17:49:17 +0900 | [diff] [blame] | 34 | formatter=default |
Mitsuhiko Yamazaki | 6ffa59c | 2013-04-11 13:37:07 +0900 | [diff] [blame] | 35 | args=(sys.stdout,) |
| 36 | |
Mitsuhiko Yamazaki | 46818aa | 2013-04-18 17:49:17 +0900 | [diff] [blame] | 37 | [formatter_default] |
| 38 | format=%(name)s: %(levelname)s: %(message)s |
Mitsuhiko Yamazaki | 6ffa59c | 2013-04-11 13:37:07 +0900 | [diff] [blame] | 39 | |
Mitsuhiko Yamazaki | 46818aa | 2013-04-18 17:49:17 +0900 | [diff] [blame] | 40 | [formatter_tests] |
| 41 | class = tempest.common.log.TestsFormatter |