diff options
author | Joshua Harlow <jxharlow@godaddy.com> | 2016-07-25 12:36:30 -0700 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2016-11-22 14:28:58 -0500 |
commit | 11b1aba4597379051e6b934e2b8f5a455e26ef14 (patch) | |
tree | 3ae730436de66789402d4b00742c805e1cf85cae /config | |
parent | 0fd1dd02c755cb75a73c04a59f70df1b87a0ed42 (diff) | |
download | vyos-cloud-init-11b1aba4597379051e6b934e2b8f5a455e26ef14.tar.gz vyos-cloud-init-11b1aba4597379051e6b934e2b8f5a455e26ef14.zip |
Just use file logging by default
Instead of being dependent on the availability of syslog that
various distributions may not enable or configure correctly
or they do so via patches just use a known-to-work default
logging mechanism. If distros want to change this, that
is fine, but at least the built-in one will work reliably.
LP: #1643990
Diffstat (limited to 'config')
-rw-r--r-- | config/cloud.cfg.d/05_logging.cfg | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/config/cloud.cfg.d/05_logging.cfg b/config/cloud.cfg.d/05_logging.cfg index 2e180730..937b07f8 100644 --- a/config/cloud.cfg.d/05_logging.cfg +++ b/config/cloud.cfg.d/05_logging.cfg @@ -53,14 +53,19 @@ _log: args=("/dev/log", handlers.SysLogHandler.LOG_USER) log_cfgs: -# These will be joined into a string that defines the configuration - - [ *log_base, *log_syslog ] -# These will be joined into a string that defines the configuration +# Array entries in this list will be joined into a string +# that defines the configuration. +# +# If you want logs to go to syslog, uncomment the following line. +# - [ *log_base, *log_syslog ] +# +# The default behavior is to just log to a file. +# This mechanism that does not depend on a system service to operate. - [ *log_base, *log_file ] -# A file path can also be used +# A file path can also be used. # - /etc/log.conf -# this tells cloud-init to redirect its stdout and stderr to +# This tells cloud-init to redirect its stdout and stderr to # 'tee -a /var/log/cloud-init-output.log' so the user can see output # there without needing to look on the console. output: {all: '| tee -a /var/log/cloud-init-output.log'} |