~hopem/charms/trusty/keystone/fix-db-access-before-ready

« back to all changes in this revision

Viewing changes to templates/kilo/logging.conf

  • Committer: Liam Young
  • Date: 2015-02-12 09:29:35 UTC
  • mfrom: (115.1.1 keystone-next)
  • Revision ID: liam.young@canonical.com-20150212092935-4yzvod9gzwllwsb8
[1chb1n,r=gnuoy] Fix kilo templates

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# kilo
 
2
[loggers]
 
3
keys=root
 
4
 
 
5
[formatters]
 
6
keys=normal,normal_with_name,debug
 
7
 
 
8
[handlers]
 
9
keys=production,file,devel
 
10
 
 
11
[logger_root]
 
12
{% if root_level -%}
 
13
level={{ root_level }}
 
14
{% else -%}
 
15
level=WARNING
 
16
{% endif -%}
 
17
handlers=file
 
18
 
 
19
[handler_production]
 
20
class=handlers.SysLogHandler
 
21
level=ERROR
 
22
formatter=normal_with_name
 
23
args=(('localhost', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_USER)
 
24
 
 
25
[handler_file]
 
26
class=FileHandler
 
27
level=DEBUG
 
28
formatter=normal_with_name
 
29
args=('/var/log/keystone/keystone.log', 'a')
 
30
 
 
31
[handler_devel]
 
32
class=StreamHandler
 
33
level=NOTSET
 
34
formatter=debug
 
35
args=(sys.stdout,)
 
36
 
 
37
[formatter_normal]
 
38
format=%(asctime)s %(levelname)s %(message)s
 
39
 
 
40
[formatter_normal_with_name]
 
41
format=(%(name)s): %(asctime)s %(levelname)s %(message)s
 
42
 
 
43
[formatter_debug]
 
44
format=(%(name)s): %(asctime)s %(levelname)s %(module)s %(funcName)s %(message)s