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.
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'.
16
keys=consoleHandler,cloudLogHandler
19
keys=simpleFormatter,arg0Formatter
23
handlers=consoleHandler,cloudLogHandler
31
[handler_consoleHandler]
34
formatter=arg0Formatter
37
[formatter_arg0Formatter]
38
format=%(asctime)s - %(filename)s[%(levelname)s]: %(message)s
40
[formatter_simpleFormatter]
41
format=[CLOUDINIT] %(filename)s[%(levelname)s]: %(message)s
43
[handler_cloudLogHandler]
46
formatter=simpleFormatter
47
args=('/var/log/cloud-init.log',)
49
[handler_cloudLogHandler]
50
class=handlers.SysLogHandler
52
formatter=simpleFormatter
53
args=("/dev/log", handlers.SysLogHandler.LOG_USER)
56
- [ *log_base, *log_syslog ]
57
- [ *log_base, *log_file ]