Zack Williams | 41513bf | 2018-07-07 20:08:35 -0700 | [diff] [blame] | 1 | # 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. |
Sergio Slobodrian | f39aaf8 | 2017-02-28 16:10:16 -0500 | [diff] [blame] | 14 | logging: |
| 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' |
| 23 | fluent_fmt: |
| 24 | '()': fluent.handler.FluentRecordFormatter |
| 25 | format: |
| 26 | level: '%(levelname)s' |
| 27 | hostname: '%(hostname)s' |
| 28 | where: '%(module)s.%(funcName)s' |
| 29 | |
| 30 | handlers: |
| 31 | console: |
| 32 | class : logging.StreamHandler |
| 33 | level: DEBUG |
| 34 | formatter: default |
| 35 | stream: ext://sys.stdout |
| 36 | fluent: |
| 37 | class: fluent.handler.FluentHandler |
| 38 | host: localhost |
| 39 | port: 24224 |
| 40 | tag: voltha.logging |
| 41 | formatter: fluent_fmt |
| 42 | level: DEBUG |
| 43 | 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 |
| 54 | handlers: [console, fluent] |
| 55 | level: INFO # this can be bumped up/down by -q and -v command line |
| 56 | # options |
| 57 | propagate: False |
| 58 | |