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. |
Zsolt Haraszti | 8a77438 | 2016-10-24 18:25:54 -0700 | [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' |
Zsolt Haraszti | 8a77438 | 2016-10-24 18:25:54 -0700 | [diff] [blame] | 23 | |
| 24 | handlers: |
| 25 | console: |
| 26 | class : logging.StreamHandler |
| 27 | level: DEBUG |
| 28 | formatter: default |
| 29 | stream: ext://sys.stdout |
khenaidoo | 80a7f57 | 2017-04-05 14:17:16 -0500 | [diff] [blame] | 30 | localRotatingFile: |
| 31 | class: logging.handlers.RotatingFileHandler |
| 32 | filename: ofagent.log |
| 33 | formatter: default |
| 34 | maxBytes: 2097152 |
| 35 | backupCount: 10 |
| 36 | level: DEBUG |
Zsolt Haraszti | 8a77438 | 2016-10-24 18:25:54 -0700 | [diff] [blame] | 37 | null: |
| 38 | class: logging.NullHandler |
| 39 | |
| 40 | loggers: |
| 41 | amqp: |
| 42 | handlers: [null] |
| 43 | propagate: False |
| 44 | conf: |
Zsolt Haraszti | 8a77438 | 2016-10-24 18:25:54 -0700 | [diff] [blame] | 45 | propagate: False |
| 46 | '': # root logger |
khenaidoo | 50b286d | 2018-03-02 17:44:30 -0500 | [diff] [blame] | 47 | handlers: [console, localRotatingFile] |
Zsolt Haraszti | 8a77438 | 2016-10-24 18:25:54 -0700 | [diff] [blame] | 48 | level: INFO # this can be bumped up/down by -q and -v command line |
| 49 | # options |
| 50 | propagate: False |