Skip to content

Instantly share code, notes, and snippets.

@smoser
Created September 28, 2016 14:32
Show Gist options
  • Save smoser/984af8ead62c7b908f02df82da49c832 to your computer and use it in GitHub Desktop.
Save smoser/984af8ead62c7b908f02df82da49c832 to your computer and use it in GitHub Desktop.
cloud-init minimal logging config
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