blob: 25b06a4670fc9ec354cae33b3be3fd33cb16dae1 [file] [log] [blame]
Zsolt Haraszti8a774382016-10-24 18:25:54 -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'
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'
Zsolt Haraszti8a774382016-10-24 18:25:54 -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
khenaidoo379979e2017-08-24 11:51:00 -040030 tag: ofagent.logging
khenaidoo4f6bf1f2017-08-28 12:25:22 -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 Haraszti8a774382016-10-24 18:25:54 -070035 level: DEBUG
khenaidoo80a7f572017-04-05 14:17:16 -050036 localRotatingFile:
37 class: logging.handlers.RotatingFileHandler
38 filename: ofagent.log
39 formatter: default
40 maxBytes: 2097152
41 backupCount: 10
42 level: DEBUG
Zsolt Haraszti8a774382016-10-24 18:25:54 -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
khenaidoo80a7f572017-04-05 14:17:16 -050054 handlers: [console, fluent, localRotatingFile]
Zsolt Haraszti8a774382016-10-24 18:25:54 -070055 level: INFO # this can be bumped up/down by -q and -v command line
56 # options
57 propagate: False