<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
	threshold="null" debug="false">

	<appender name="rolling" class="org.apache.log4j.RollingFileAppender">
		<!-- Default location -->
		<param name="File" value="${webapp.root}/logs/geobatch.log" />
		<!-- Geobatch logs dir -->
		<!-- <param name="File" value="${GEOBATCH_LOG}/geobatch.log" /> -->
		<!-- Tomcat Default logs dir -->
		<!-- <param name="File" value="${catalina.base}/logs/geobatch.log" /> -->

		<param name="maxFileSize" value="100MB" />
		<param name="maxBackupIndex" value="5" />
		<param name="threshold" value="info" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d{ISO8601} %5p %24C{1}:%L - %m%n" />
		</layout>
	</appender>

	<appender name="console" class="org.apache.log4j.ConsoleAppender">
		<param name="Target" value="System.out" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d{ABSOLUTE} %-5p %C{1} - %m%n" /> <!-- c:category C:class -->
		</layout>
	</appender>


	<!-- CAMEL -->
	<logger name="org.apache.camel" additivity="true">
		<!-- <level value="warning" /> -->
		<level value="info" /><!-- DEBUG -->
		<appender-ref ref="rolling" />
	</logger>
	<logger name="it.geosolutions.geobatch" additivity="true">
		<!-- <level value="warning" /> -->
		<level value="info" /><!-- DEBUG -->
		<appender-ref ref="rolling" />
	</logger>

	<logger name="org.quartz" additivity="true">
		<level value="info" />
		<appender-ref ref="rolling" />
	</logger>

	<logger name="org.hibernate" additivity="true">
		<level value="info" />
		<appender-ref ref="rolling" />
	</logger>

	<!-- SPRING -->
	<logger name="org.springframework" additivity="true">
		<level value="info" />
		<appender-ref ref="rolling" />
	</logger>

	<!-- JETTY -->
	<logger name="org.mortbay.jetty" additivity="true">
		<level value="info" />
		<appender-ref ref="rolling" />
		<appender-ref ref="console" />
	</logger>

	<root>
		<level value="info" />
		<appender-ref ref="rolling" />
		<appender-ref ref="console" />
	</root>

</log4j:configuration>
