blob: 24aca855a5eacf82f01f6fa290d9663acd95c6d7 [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.
Khen Nursimulu3869d8d2016-11-28 20:44:28 -050014logging:
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'
Khen Nursimulu3869d8d2016-11-28 20:44:28 -050023
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: netconf.log
33 formatter: default
34 maxBytes: 2097152
35 backupCount: 10
36 level: DEBUG
Khen Nursimulu3869d8d2016-11-28 20:44:28 -050037 null:
38 class: logging.NullHandler
39
40 loggers:
41 amqp:
42 handlers: [null]
43 propagate: False
44 conf:
Khen Nursimulu3869d8d2016-11-28 20:44:28 -050045 propagate: False
46 '': # root logger
khenaidoo50b286d2018-03-02 17:44:30 -050047 handlers: [console, localRotatingFile]
Khen Nursimulu3869d8d2016-11-28 20:44:28 -050048 level: INFO # this can be bumped up/down by -q and -v command line
49 # options
50 propagate: False