
* modules/elastic_recheck/files/elastic-recheck.init: Minor whitespace cleanup for space-before-tab indent on a comment line. * modules/elastic_recheck/files/logging.config: New logging configuration file for elastic-recheck IRC bot. * modules/elastic_recheck/manifests/init.pp: Install the new logging configuration file. * modules/elastic_recheck/templates/elastic-recheck.conf.erb: Tell the IRC bot to use the new logging configuration file. Change-Id: I47cabb01df209c9f020846bcb272b9a2f796b0e5
53 lines
981 B
Plaintext
53 lines
981 B
Plaintext
[loggers]
|
|
keys=root,recheckwatchbot,elastic-recheck,irc
|
|
|
|
[handlers]
|
|
keys=console,debug,normal
|
|
|
|
[formatters]
|
|
keys=simple
|
|
|
|
[logger_root]
|
|
level=INFO
|
|
handlers=console,debug,normal
|
|
|
|
[logger_elastic-recheck]
|
|
level=DEBUG
|
|
handlers=console,debug,normal
|
|
qualname=elastic-recheck
|
|
propagate=0
|
|
|
|
[logger_recheckwatchbot]
|
|
level=DEBUG
|
|
handlers=console,debug,normal
|
|
qualname=elastic-recheck
|
|
propagate=0
|
|
|
|
[logger_irc]
|
|
level=INFO
|
|
handlers=console,debug,normal
|
|
qualname=irc
|
|
propagate=0
|
|
|
|
[handler_console]
|
|
level=WARNING
|
|
class=StreamHandler
|
|
formatter=simple
|
|
args=(sys.stdout,)
|
|
|
|
[handler_debug]
|
|
level=DEBUG
|
|
class=logging.handlers.TimedRotatingFileHandler
|
|
formatter=simple
|
|
args=('/var/log/elastic-recheck/elastic-recheck_debug.log', 'midnight', 1, 30,)
|
|
|
|
[handler_normal]
|
|
level=INFO
|
|
class=logging.handlers.TimedRotatingFileHandler
|
|
formatter=simple
|
|
args=('/var/log/elastic-recheck/elastic-recheck.log', 'midnight', 1, 30,)
|
|
|
|
[formatter_simple]
|
|
format=%(asctime)s %(levelname)s %(name)s: %(message)s
|
|
datefmt=
|