Matt Jeanneret | f1e9c5d | 2019-02-08 07:41:29 -0500 | [diff] [blame] | 1 | --- |
| 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 | |
| 16 | logging: |
| 17 | version: 1 |
| 18 | |
| 19 | formatters: |
David Bainbridge | d831fd3 | 2020-06-04 11:51:33 -0700 | [diff] [blame] | 20 | brief: |
| 21 | format: '%(message)s' |
| 22 | default: |
| 23 | # yamllint disable-line rule:line-length |
| 24 | format: '%(asctime)s.%(msecs)03d %(levelname)-8s %(threadName)s %(module)s.%(funcName)s %(message)s' |
| 25 | datefmt: '%Y%m%dT%H%M%S' |
Matt Jeanneret | f1e9c5d | 2019-02-08 07:41:29 -0500 | [diff] [blame] | 26 | |
| 27 | handlers: |
| 28 | console: |
David Bainbridge | d831fd3 | 2020-06-04 11:51:33 -0700 | [diff] [blame] | 29 | class: logging.StreamHandler |
Matt Jeanneret | f1e9c5d | 2019-02-08 07:41:29 -0500 | [diff] [blame] | 30 | level: DEBUG |
| 31 | formatter: default |
| 32 | stream: ext://sys.stdout |
Matt Jeanneret | f1e9c5d | 2019-02-08 07:41:29 -0500 | [diff] [blame] | 33 | |
| 34 | loggers: |
Matt Jeanneret | f1e9c5d | 2019-02-08 07:41:29 -0500 | [diff] [blame] | 35 | conf: |
David Bainbridge | d831fd3 | 2020-06-04 11:51:33 -0700 | [diff] [blame] | 36 | # yamllint disable-line rule:truthy |
Matt Jeanneret | f1e9c5d | 2019-02-08 07:41:29 -0500 | [diff] [blame] | 37 | propagate: False |
David Bainbridge | d831fd3 | 2020-06-04 11:51:33 -0700 | [diff] [blame] | 38 | # root logger |
| 39 | '': |
| 40 | handlers: [console] |
Matt Jeanneret | f1e9c5d | 2019-02-08 07:41:29 -0500 | [diff] [blame] | 41 | |
David Bainbridge | d831fd3 | 2020-06-04 11:51:33 -0700 | [diff] [blame] | 42 | # 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 Jeanneret | f1e9c5d | 2019-02-08 07:41:29 -0500 | [diff] [blame] | 46 | |
| 47 | kafka-cluster-proxy: |
| 48 | event_bus_publisher: |
| 49 | topic_mappings: |
| 50 | 'model-change-events': |
| 51 | kafka_topic: 'voltha.events' |
David Bainbridge | d831fd3 | 2020-06-04 11:51:33 -0700 | [diff] [blame] | 52 | filters: [null] |
Matt Jeanneret | f1e9c5d | 2019-02-08 07:41:29 -0500 | [diff] [blame] | 53 | 'alarms': |
| 54 | kafka_topic: 'voltha.alarms' |
David Bainbridge | d831fd3 | 2020-06-04 11:51:33 -0700 | [diff] [blame] | 55 | filters: [null] |
Matt Jeanneret | f1e9c5d | 2019-02-08 07:41:29 -0500 | [diff] [blame] | 56 | 'kpis': |
| 57 | kafka_topic: 'voltha.kpis' |
David Bainbridge | d831fd3 | 2020-06-04 11:51:33 -0700 | [diff] [blame] | 58 | filters: [null] |