blob: e812cf41afaa90d03c290c89d3be4e5054a3ed91 [file] [log] [blame]
khenaidoo379979e2017-08-24 11:51:00 -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'
khenaidoo4f6bf1f2017-08-28 12:25:22 -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'
khenaidoo379979e2017-08-24 11:51:00 -040019
20 handlers:
21 fluent:
22 class: fluent.handler.FluentHandler
23 host: localhost
24 port: 24224
25 tag: ofagent.logging
khenaidoo4f6bf1f2017-08-28 12:25:22 -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
khenaidoo379979e2017-08-24 11:51:00 -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