blob: 648051d8021677a44cf0dc62fa706f50026a89bb [file] [log] [blame]
#
# Copyright 2017 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
logging:
version: 1
formatters:
brief:
format: '%(message)s'
default:
format: '%(asctime)s.%(msecs)03d %(levelname)-8s %(module)s.%(funcName)s %(message)s'
datefmt: '%Y%m%dT%H%M%S'
fluent_fmt:
'()': fluent.handler.FluentRecordFormatter
format:
level: '%(levelname)s'
hostname: '%(hostname)s'
where: '%(module)s.%(funcName)s'
fluent_default:
format: '%(asctime)s.%(msecs)03d %(levelname)-8s %(threadName)s %(module)s.%(funcName)s %(message)s'
datefmt: '%Y%m%dT%H%M%S'
handlers:
fluent:
class: fluent.handler.FluentHandler
host: localhost
port: 24224
tag: chameleon.logging
# Since fluent formatter output an exception with grpc data, use
# a basic formatter for now.
# formatter: fluent_fmt
formatter: fluent_default
level: INFO
null:
class: logging.NullHandler
loggers:
amqp:
handlers: [null]
propagate: False
conf:
handlers: [null]
propagate: False
'': # root logger
handlers: [fluent]
level: INFO # this can be bumped up/down by -q and -v command line
# options
propagate: False