From 11b1aba4597379051e6b934e2b8f5a455e26ef14 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Mon, 25 Jul 2016 12:36:30 -0700 Subject: 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 --- config/cloud.cfg.d/05_logging.cfg | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'config') 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'} -- cgit v1.2.3