diff options
author | Scott Moser <smoser@ubuntu.com> | 2010-06-17 11:29:34 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2010-06-17 11:29:34 -0400 |
commit | afb5f8da541f97a9fc5c023cac7dc55b5b81dd06 (patch) | |
tree | c2ee0bb23d94f69e5650b728938ab5f7e1e13f56 /doc | |
parent | a9f600c4fb7426661c478f043791795ddbabb69a (diff) | |
download | vyos-cloud-init-afb5f8da541f97a9fc5c023cac7dc55b5b81dd06.tar.gz vyos-cloud-init-afb5f8da541f97a9fc5c023cac7dc55b5b81dd06.zip |
add initial logging support
This logging infrastructure in cloudinit:
- uses python logging
- allows user supplied config of logging.config.fileConfig format to be
supplied in /etc/cloud/cloud.cfg or in cloud_config by user data.
- by default, tries to use syslog, if that is not available, writes directly to
/var/log/cloud-init.log (syslog will not be available yet when cloud-init
runs)
- when using syslog, the doc/21-cloudinit.conf file provides a rsyslogd
file to be placed in /etc/rsyslog.d/ that will file [CLOUDINIT] messages
to /var/log/cloud-init.log
Diffstat (limited to 'doc')
-rw-r--r-- | doc/21-cloudinit.conf | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/21-cloudinit.conf b/doc/21-cloudinit.conf new file mode 100644 index 00000000..0a2d7688 --- /dev/null +++ b/doc/21-cloudinit.conf @@ -0,0 +1,7 @@ +# Log cloudinit generated log messages to file +:syslogtag, isequal, "[CLOUDINIT]" /var/log/cloud-init.log + +# Uncomment the following to stop logging anything that matches the last rule. +# Doing this will stop logging kernel generated UFW log messages to the file +# normally containing kern.* messages (eg, /var/log/kern.log) +& ~ |