blob: 244245c1e341ad657f4a1fb3688c385ba8c92a6c [file] [log] [blame]
Zsolt Harasztid7ae9d52016-09-27 09:56:49 -07001logging:
2 version: 1
3
4 formatters:
5 brief:
6 format: '%(message)s'
7 default:
8 format: '%(asctime)s.%(msecs)03d %(levelname)-8s %(module)s.%(funcName)s %(message)s'
9 datefmt: '%Y%m%dT%H%M%S'
10 fluent_fmt:
11 '()': fluent.handler.FluentRecordFormatter
12 format:
13 level: '%(levelname)s'
14 hostname: '%(hostname)s'
15 where: '%(module)s.%(funcName)s'
khenaidoo55c6b0c2017-08-28 12:27:54 -040016 fluent_default:
17 format: '%(asctime)s.%(msecs)03d %(levelname)-8s %(threadName)s %(module)s.%(funcName)s %(message)s'
18 datefmt: '%Y%m%dT%H%M%S'
Zsolt Harasztid7ae9d52016-09-27 09:56:49 -070019
20 handlers:
21 console:
22 class : logging.StreamHandler
23 level: DEBUG
24 formatter: default
25 stream: ext://sys.stdout
26 fluent:
27 class: fluent.handler.FluentHandler
28 host: localhost
29 port: 24224
khenaidoo77c0d0c2017-08-24 13:45:14 -040030 tag: chameleon.logging
khenaidoo55c6b0c2017-08-28 12:27:54 -040031 # Since fluent formatter output an exception with grpc data, use
32 # a basic formatter for now.
33 # formatter: fluent_fmt
34 formatter: fluent_default
Zsolt Harasztid7ae9d52016-09-27 09:56:49 -070035 level: DEBUG
khenaidoo56f45922017-04-05 14:23:31 -050036 localRotatingFile:
37 class: logging.handlers.RotatingFileHandler
38 filename: chameleon.log
39 formatter: default
40 maxBytes: 2097152
41 backupCount: 10
42 level: DEBUG
Zsolt Harasztid7ae9d52016-09-27 09:56:49 -070043 null:
44 class: logging.NullHandler
45
46 loggers:
47 amqp:
48 handlers: [null]
49 propagate: False
50 conf:
51 handlers: [null]
52 propagate: False
53 '': # root logger
khenaidoo56f45922017-04-05 14:23:31 -050054 handlers: [console, fluent, localRotatingFile]
Zsolt Harasztid7ae9d52016-09-27 09:56:49 -070055 level: INFO # this can be bumped up/down by -q and -v command line
56 # options
57 propagate: False