trove/etc/trove/trove-logging-guestagent.conf
Masaki Matsushita f80dd43297 Add trove-guestagnet.conf sample for log rotation
This change adds a configuration sample of guestagent
to use log rotation.

Change-Id: I2f2fb0d42f2f9d674daf3adff8725a365cc1a5b3
Closes-Bug: #1269615
2016-08-09 13:24:11 +09:00

40 lines
668 B
Plaintext

[loggers]
keys=root
[handlers]
keys=file
[formatters]
keys=minimal,normal,debug
###########
# Loggers #
###########
[logger_root]
level=WARNING
handlers=file
################
# Log Handlers #
################
[handler_file]
class=logging.handlers.RotatingFileHandler
level=WARNING
formatter=normal
args=('/var/log/trove-guestagent.log', 'a', 100 * 1024 * 1024) # log file limit is 100MB
##################
# Log Formatters #
##################
[formatter_minimal]
format=%(message)s
[formatter_normal]
format=(%(name)s): %(asctime)s %(levelname)s %(message)s
[formatter_debug]
format=(%(name)s): %(asctime)s %(levelname)s %(module)s %(funcName)s %(message)s