blob: 0dd06aaa62eaff97871a58c1a6008f02db4c6d06 [file] [log] [blame]
Matt Jeanneretf1e9c5d2019-02-08 07:41:29 -05001---
2# Copyright 2018 the original author or authors.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16logging:
17 version: 1
18
19 formatters:
David Bainbridged831fd32020-06-04 11:51:33 -070020 brief:
21 format: '%(message)s'
22 default:
23 # yamllint disable-line rule:line-length
Chip Bolingadc38c12020-08-11 13:25:37 -050024 format: '{"level":"%(levelname)s","ts":"%(asctime)s.%(msecs)03dZ","caller":"%(filename)s:%(lineno)d","function":"%(funcName)s","pkg":"%(module)s",%(message)s}'
25 datefmt: '%Y-%m-%dT%H:%M:%S'
Matt Jeanneretf1e9c5d2019-02-08 07:41:29 -050026
27 handlers:
28 console:
David Bainbridged831fd32020-06-04 11:51:33 -070029 class: logging.StreamHandler
Matt Jeanneretf1e9c5d2019-02-08 07:41:29 -050030 level: DEBUG
31 formatter: default
32 stream: ext://sys.stdout
Matt Jeanneretf1e9c5d2019-02-08 07:41:29 -050033
34 loggers:
Matt Jeanneretf1e9c5d2019-02-08 07:41:29 -050035 conf:
David Bainbridged831fd32020-06-04 11:51:33 -070036 # yamllint disable-line rule:truthy
Matt Jeanneretf1e9c5d2019-02-08 07:41:29 -050037 propagate: False
David Bainbridged831fd32020-06-04 11:51:33 -070038 # root logger
39 '':
40 handlers: [console]
Matt Jeanneretf1e9c5d2019-02-08 07:41:29 -050041
David Bainbridged831fd32020-06-04 11:51:33 -070042 # log level can be bumped up/down by a -q and -v command line option
43 level: DEBUG
44 # yamllint disable-line rule:truthy
45 propagate: False
Matt Jeanneretf1e9c5d2019-02-08 07:41:29 -050046
47kafka-cluster-proxy:
48 event_bus_publisher:
49 topic_mappings:
50 'model-change-events':
51 kafka_topic: 'voltha.events'
David Bainbridged831fd32020-06-04 11:51:33 -070052 filters: [null]
Matt Jeanneretf1e9c5d2019-02-08 07:41:29 -050053 'alarms':
54 kafka_topic: 'voltha.alarms'
David Bainbridged831fd32020-06-04 11:51:33 -070055 filters: [null]
Matt Jeanneretf1e9c5d2019-02-08 07:41:29 -050056 'kpis':
57 kafka_topic: 'voltha.kpis'
David Bainbridged831fd32020-06-04 11:51:33 -070058 filters: [null]