blob: a0e2cdd73a00d0ba89d72c7b63917a7d6e12d456 [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
Zsolt Haraszti8a774382016-10-24 18:25:54 -070014logging:
15 version: 1
16
17 formatters:
18 brief:
19 format: '%(message)s'
20 default:
21 format: '%(asctime)s.%(msecs)03d %(levelname)-8s %(module)s.%(funcName)s %(message)s'
22 datefmt: '%Y%m%dT%H%M%S'
Zsolt Haraszti8a774382016-10-24 18:25:54 -070023
24 handlers:
25 console:
26 class : logging.StreamHandler
27 level: DEBUG
28 formatter: default
29 stream: ext://sys.stdout
khenaidoo80a7f572017-04-05 14:17:16 -050030 localRotatingFile:
31 class: logging.handlers.RotatingFileHandler
32 filename: ofagent.log
33 formatter: default
34 maxBytes: 2097152
35 backupCount: 10
36 level: DEBUG
Zsolt Haraszti8a774382016-10-24 18:25:54 -070037 null:
38 class: logging.NullHandler
39
40 loggers:
41 amqp:
42 handlers: [null]
43 propagate: False
44 conf:
Zsolt Haraszti8a774382016-10-24 18:25:54 -070045 propagate: False
46 '': # root logger
khenaidoo50b286d2018-03-02 17:44:30 -050047 handlers: [console, localRotatingFile]
Zsolt Haraszti8a774382016-10-24 18:25:54 -070048 level: INFO # this can be bumped up/down by -q and -v command line
49 # options
50 propagate: False