#
# 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.
#
##
appender.0.type = File
appender.0.name = MAIN_LOG
appender.0.fileName = main.log
appender.0.layout.type = JsonTemplateLayout

appender.1.type = File
appender.1.name = MARKED_LOG
appender.1.fileName = marked.log
appender.1.layout.type = JsonTemplateLayout

appender.2.type = File
appender.2.name = AUDIT_LOG
appender.2.fileName = audit.log
appender.2.layout.type = JsonTemplateLayout

# tag::appender[]
appender.3.type = Routing
appender.3.name = ROUTING
appender.3.route.type = Routes
appender.3.route.pattern = $${event:Marker}
# <1>
appender.3.route.0.type = Route
appender.3.route.0.key = AUDIT
appender.3.route.0.ref = AUDIT_LOG
# <2>
appender.3.route.1.type = Route
appender.3.route.1.key = $${event:Marker}
appender.3.route.1.ref = MAIN_LOG
# <3>
appender.3.route.2.type = Route
appender.3.route.2.ref = MARKED_LOG
# end::appender[]

rootLogger.level = INFO
rootLogger.appenderRef.0.ref = ROUTING
