blob: 1939ddd2e9648e48141c9a8d51c4ddd0d8db7b12 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ 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.
-->
<Configuration name="SmtpAppenderAsyncTest" status="WARN">
<Appenders>
<SMTP name="mail-sync" to="to@example.com" from="from@example.com" smtpHost="localhost"
smtpPort="${sys:smtp.port}" ignoreExceptions="false" subject="[%X{MDC1}]">
<PatternLayout pattern="Body:[%X{MDC1}]" />
</SMTP>
<Async name="mail-async">
<AppenderRef ref="mail-sync"/>
</Async>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d [%t] %-5level: %msg%n%throwable" />
</Console>
</Appenders>
<Loggers>
<Root level="FATAL">
<AppenderRef ref="Console"/>
</Root>
<Logger name="sync" level="INFO">
<AppenderRef ref="mail-sync"/>
</Logger>
<Logger name="async" level="INFO">
<AppenderRef ref="mail-async"/>
</Logger>
</Loggers>
</Configuration>