blob: 74d9236cc6afc923e1164dd8eb56782f24fbdfad [file] [log] [blame]
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to you 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.
#
##
# tag::global[]
appender.0.type = File
appender.0.name = GLOBAL
appender.0.fileName = logs/global
appender.0.layout.type = JsonTemplateLayout
appender.0.layout.0.type = EventTemplateAdditionalField
appender.0.layout.0.key = contextName
appender.0.layout.0.value = $${web:contextName}
# end::global[]
# tag::routing[]
appender.1.type = Routing
appender.1.name = ROUTING
appender.1.route.type = Routes
appender.1.route.pattern = $${web:contextName:-common}
appender.1.route.0.type = Route
appender.1.route.0.appender.type = File
appender.1.route.0.appender.name = ${web:contextName:-common}
appender.1.route.0.appender.fileName = logs/${web:contextName:-common}.log
appender.1.route.0.appender.layout.type = PatternLayout
appender.1.route.0.appender.layout.pattern = %d [%t] %-5p %c - %m%n
# end::routing[]
rootLogger.level = INFO
rootLogger.appenderRef.0.ref = GLOBAL
rootLogger.appenderRef.1.ref = ROUTING