blob: 138ce8251ed05588ab94c0377c1d1795ae1b8b13 [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.
-->
<!--
File location: see https://logging.apache.org/log4j/2.x/manual/webapp.html
...If no location is defined Log4j will search for a file that starts with "log4j2" in the WEB-INF directory...
Cf. https://logging.apache.org/log4j/2.x/manual/webapp.html
web:rootDir see Web Lookup: https://logging.apache.org/log4j/2.x/manual/lookups.html
CHANGES: moved applicationRoot to web:rootDir
-->
#set($dollar = '$')
<Configuration>
<Appenders>
<Console name="console" target="SYSTEM_OUT">
<PatternLayout pattern="%d [%t] %-5p | %c - %m%n"/>
</Console>
<File name="app" fileName="#var('web:rootDir')#var('sys:file.separator')logs#var('sys:file.separator')application.log">
<PatternLayout pattern="%d [%t] %-5p %c - %m%n"/>
</File>
<File name="avalon" fileName="#var('web:rootDir')#var('sys:file.separator')logs#var('sys:file.separator')avalon.log">
<PatternLayout pattern="%d [%t] %-5p %c - %m%n"/>
</File>
<File name="scheduler" fileName="#var('web:rootDir')/logs/scheduler.log">
<PatternLayout pattern="%d [%t] %-5p %c - %m%n"/>
</File>
<File name="torque" fileName="#var('web:rootDir')/logs/torque.log">
<PatternLayout pattern="%d [%t] %-5p %c - %m%n"/>
</File>
<File name="sql" fileName="#var('web:rootDir')/logs/sql.log">
<PatternLayout pattern="%d [%t] %-5p %c - %m%n"/>
</File>
<File name="turbine" fileName="#var('web:rootDir')#var('sys:file.separator')logs#var('sys:file.separator')turbine.log">
<PatternLayout pattern="%d [%t] %-5p %c - %m%n"/>
</File>
<File name="velocity" fileName="#var('web:rootDir')#var('sys:file.separator')logs#var('sys:file.separator')velocity.log">
<PatternLayout pattern="%d [%t] %-5p %c - %m%n"/>
</File>
</Appenders>
<Loggers>
<Logger name="avalon" additivity="false" level="DEBUG">
<AppenderRef ref="avalon"/>
</Logger>
<Logger name="org.apache.torque" additivity="false" level="INFO">
<AppenderRef ref="torque"/>
</Logger>
<Logger name="org.apache.torque.util" additivity="false" level="DEBUG">
<AppenderRef ref="sql"/>
<AppenderRef ref="console"/>
</Logger>
<Logger name="org.apache.turbine" additivity="false" level="INFO">
<AppenderRef ref="turbine"/>
</Logger>
<Logger name="scheduler" additivity="false" level="INFO">
<AppenderRef ref="scheduler"/>
</Logger>
<Logger name="velocity" additivity="false" level="INFO">
<AppenderRef ref="velocity"/>
</Logger>
<Logger name="org.apache.${package}" additivity="false" level="DEBUG">
<AppenderRef ref="app"/>
</Logger>
<Root level="INFO">
<AppenderRef ref="app"/>
<AppenderRef ref="console"/>
</Root>
</Loggers>
</Configuration>