~ubuntu-branches/ubuntu/natty/cloud-init/natty-proposed

« back to all changes in this revision

Viewing changes to config/cloud.cfg.d/05_logging.cfg

  • Committer: Package Import Robot
  • Author(s): Scott Moser
  • Date: 2011-02-19 01:16:10 UTC
  • mfrom: (60.1.25 natty)
  • Revision ID: package-import@ubuntu.com-20110219011610-rcf4ll5uuzqh9bdn
* New upstream release.
* fix for puppet configuration options (LP: #709946) [Ryan Lane]
* fix pickling of DataSource, which broke seeding.
* turn resize_rootfs default to True
* avoid mounts in DataSourceOVF if 'read' on device fails
  'mount /dev/sr0' for an empty virtual cdrom device was taking 18 seconds
* add 'manual_cache_clean' option to select manual cleaning of
  the /var/lib/cloud/instance/ link, for a data source that might
  not be present on every boot
* make DataSourceEc2 retries and timeout configurable
* add 'bootcmd' like 'runcmd' to cloud-config syntax for running things early
* move from '#opt_include' in config file format to conf_d.
  now local config files should live in /etc/cloud/cloud.cfg.d/
* move /etc/cloud/distro.cfg to /etc/cloud/cloud.cfg.d/90_dpkg.cfg
* allow /etc/hosts to be written from hosts.tmpl. which allows
  getting local-hostname into /etc/hosts (LP: #720440)
* better handle startup if there is no eth0 (LP: #714807)
* update rather than append in puppet config [Marc Cluet]
* add cloud-config for mcollective [Marc Cluet]

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## this yaml formated config file handles setting
 
2
## logger information.  The values that are necessary to be set
 
3
## are seen at the bottom.  The top '_log' are only used to remove
 
4
## redundency in a syslog and fallback-to-file case.
 
5
##
 
6
## The 'log_cfgs' entry defines a list of logger configs
 
7
## Each entry in the list is tried, and the first one that
 
8
## works is used.  If a log_cfg list entry is an array, it will
 
9
## be joined with '\n'.
 
10
_log:
 
11
 - &log_base |
 
12
   [loggers]
 
13
   keys=root,cloudinit
 
14
   
 
15
   [handlers]
 
16
   keys=consoleHandler,cloudLogHandler
 
17
   
 
18
   [formatters]
 
19
   keys=simpleFormatter,arg0Formatter
 
20
   
 
21
   [logger_root]
 
22
   level=DEBUG
 
23
   handlers=consoleHandler,cloudLogHandler
 
24
   
 
25
   [logger_cloudinit]
 
26
   level=DEBUG
 
27
   qualname=cloudinit
 
28
   handlers=
 
29
   propagate=1
 
30
   
 
31
   [handler_consoleHandler]
 
32
   class=StreamHandler
 
33
   level=WARNING
 
34
   formatter=arg0Formatter
 
35
   args=(sys.stderr,)
 
36
   
 
37
   [formatter_arg0Formatter]
 
38
   format=%(asctime)s - %(filename)s[%(levelname)s]: %(message)s
 
39
   
 
40
   [formatter_simpleFormatter]
 
41
   format=[CLOUDINIT] %(filename)s[%(levelname)s]: %(message)s
 
42
 - &log_file |
 
43
   [handler_cloudLogHandler]
 
44
   class=FileHandler
 
45
   level=DEBUG
 
46
   formatter=arg0Formatter
 
47
   args=('/var/log/cloud-init.log',)
 
48
 - &log_syslog |
 
49
   [handler_cloudLogHandler]
 
50
   class=handlers.SysLogHandler
 
51
   level=DEBUG
 
52
   formatter=simpleFormatter
 
53
   args=("/dev/log", handlers.SysLogHandler.LOG_USER)
 
54
 
 
55
log_cfgs:
 
56
 - [ *log_base, *log_syslog ]
 
57
 - [ *log_base, *log_file ]