blob: 648051d8021677a44cf0dc62fa706f50026a89bb [file] [log] [blame]
Scott Baker80a36b72018-03-12 18:55:53 -07001
2#
3# Copyright 2017 the original author or authors.
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17
khenaidoo77c0d0c2017-08-24 13:45:14 -040018logging:
19 version: 1
20
21 formatters:
22 brief:
23 format: '%(message)s'
24 default:
25 format: '%(asctime)s.%(msecs)03d %(levelname)-8s %(module)s.%(funcName)s %(message)s'
26 datefmt: '%Y%m%dT%H%M%S'
27 fluent_fmt:
28 '()': fluent.handler.FluentRecordFormatter
29 format:
30 level: '%(levelname)s'
31 hostname: '%(hostname)s'
32 where: '%(module)s.%(funcName)s'
khenaidoo55c6b0c2017-08-28 12:27:54 -040033 fluent_default:
34 format: '%(asctime)s.%(msecs)03d %(levelname)-8s %(threadName)s %(module)s.%(funcName)s %(message)s'
35 datefmt: '%Y%m%dT%H%M%S'
khenaidoo77c0d0c2017-08-24 13:45:14 -040036
37 handlers:
38 fluent:
39 class: fluent.handler.FluentHandler
40 host: localhost
41 port: 24224
42 tag: chameleon.logging
khenaidoo55c6b0c2017-08-28 12:27:54 -040043 # Since fluent formatter output an exception with grpc data, use
44 # a basic formatter for now.
45 # formatter: fluent_fmt
46 formatter: fluent_default
khenaidoo77c0d0c2017-08-24 13:45:14 -040047 level: INFO
48 null:
49 class: logging.NullHandler
50
51 loggers:
52 amqp:
53 handlers: [null]
54 propagate: False
55 conf:
56 handlers: [null]
57 propagate: False
58 '': # root logger
59 handlers: [fluent]
60 level: INFO # this can be bumped up/down by -q and -v command line
61 # options
62 propagate: False