blob: 02a89c8acff8e1cc37e643101fb236a10daef7a6 [file] [log] [blame]
khenaidoo77c0d0c2017-08-24 13:45:14 -04001logging:
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'
khenaidoo77c0d0c2017-08-24 13:45:14 -040019
20 handlers:
21 fluent:
22 class: fluent.handler.FluentHandler
23 host: localhost
24 port: 24224
25 tag: chameleon.logging
khenaidoo55c6b0c2017-08-28 12:27:54 -040026 # Since fluent formatter output an exception with grpc data, use
27 # a basic formatter for now.
28 # formatter: fluent_fmt
29 formatter: fluent_default
khenaidoo77c0d0c2017-08-24 13:45:14 -040030 level: INFO
31 null:
32 class: logging.NullHandler
33
34 loggers:
35 amqp:
36 handlers: [null]
37 propagate: False
38 conf:
39 handlers: [null]
40 propagate: False
41 '': # root logger
42 handlers: [fluent]
43 level: INFO # this can be bumped up/down by -q and -v command line
44 # options
45 propagate: False