Zack Williams | 9731cdc | 2019-11-22 15:42:30 -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. |
| 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 | |
| 24 | handlers: |
| 25 | console: |
| 26 | class : logging.StreamHandler |
| 27 | level: DEBUG |
| 28 | formatter: default |
| 29 | stream: ext://sys.stdout |
| 30 | localRotatingFile: |
| 31 | class: logging.handlers.RotatingFileHandler |
| 32 | filename: ofagent.log |
| 33 | formatter: default |
| 34 | maxBytes: 2097152 |
| 35 | backupCount: 10 |
| 36 | level: DEBUG |
| 37 | null: |
| 38 | class: logging.NullHandler |
| 39 | |
| 40 | loggers: |
| 41 | amqp: |
| 42 | handlers: [null] |
| 43 | propagate: False |
| 44 | conf: |
| 45 | propagate: False |
| 46 | '': # root logger |
| 47 | handlers: [console, localRotatingFile] |
| 48 | level: INFO # this can be bumped up/down by -q and -v command line |
| 49 | # options |
| 50 | propagate: False |