Created
September 28, 2016 14:32
-
-
Save smoser/984af8ead62c7b908f02df82da49c832 to your computer and use it in GitHub Desktop.
cloud-init minimal logging config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
output: {all: '| tee -a /var/log/cloud-init-output.log'} | |
logcfg: | | |
[loggers] | |
keys=root,cloudinit | |
[handlers] | |
keys=ch,cf | |
[formatters] | |
keys= | |
[logger_root] | |
level=DEBUG | |
handlers= | |
[logger_cloudinit] | |
level=DEBUG | |
qualname=cloudinit | |
handlers=ch,cf | |
[handler_ch] | |
class=StreamHandler | |
level=DEBUG | |
args=(sys.stderr,) | |
[handler_cf] | |
class=FileHandler | |
level=DEBUG | |
args=('/tmp/my.log',) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment