Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2011 Leibniz Institute of Plant Genetics and Crop Plant 
	Research (IPK), Gatersleben, Germany. All rights reserved. This program and 
	the accompanying materials are made available under the terms of the GNU 
	Lesser Public License v2.1 which accompanies this distribution, and is available 
	at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html Contributors: Leibniz 
	Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany 
	- initial API and implementation -->
<!DOCTYPE log4j:configuration PUBLIC "" "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
	debug="false">

	<!-- Console Appender -->
	<appender name="ConsoleAppenderAPI" class="org.apache.log4j.ConsoleAppender">
		<param name="Threshold" value="INFO" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="conversionPattern" value="%d{ISO8601} %-5p %c{1} : %m%n" />
		</layout>
	</appender>

	<!-- LogFile INFO Appender -->
	<appender name="EdalLogFileAppenderApiINFO" class="org.apache.log4j.DailyRollingFileAppender">
		<param name="file" value="${user.home}/.eDAL/eDAL_API_INFO.log" />
		<param name="Threshold" value="INFO" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="conversionPattern" value="%d{ISO8601} %r %-5p %c %p [%t] : %m%n" />
		</layout>
	</appender>

	<!-- LogFile ERROR Appender -->
	<appender name="EdalLogFileAppenderApiERROR" class="org.apache.log4j.DailyRollingFileAppender">
		<param name="file" value="${user.home}/.eDAL/eDAL_API_ERROR.log" />
		<param name="Threshold" value="ERROR" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="conversionPattern" value="%d{ISO8601} %r %-5p %c %p [%t] : %m%n" />
		</layout>
	</appender>

	<logger name="net.sf.ehcache">
		<level value="WARN" />
		<appender-ref ref="EdalLogFileAppenderApiINFO" />
		<appender-ref ref="EdalLogFileAppenderApiERROR" />

	</logger>

	<logger name="httpclient">
		<level value="WARN" />
		<appender-ref ref="EdalLogFileAppenderApiINFO" />
		<appender-ref ref="EdalLogFileAppenderApiERROR" />
	</logger>

	<logger name="org.apache">
		<level value="WARN" />
		<appender-ref ref="EdalLogFileAppenderApiINFO" />
		<appender-ref ref="EdalLogFileAppenderApiERROR" />
	</logger>

	<logger name="org.hibernate">
		<level value="WARN" />
		<appender-ref ref="EdalLogFileAppenderApiINFO" />
		<appender-ref ref="EdalLogFileAppenderApiERROR" />
	</logger>

	<logger name="com.jolbox.bonecp">
		<level value="WARN" />
		<appender-ref ref="EdalLogFileAppenderApiINFO" />
		<appender-ref ref="EdalLogFileAppenderApiERROR" />
	</logger>

	<logger name="eu.medsea.util">
		<level value="WARN" />
		<appender-ref ref="EdalLogFileAppenderApiINFO" />
		<appender-ref ref="EdalLogFileAppenderApiERROR" />
	</logger>

	<logger name="org.quartz">
		<level value="WARN" />
		<appender-ref ref="EdalLogFileAppenderApiINFO" />
		<appender-ref ref="EdalLogFileAppenderApiERROR" />
	</logger>

	<logger name="org.eclipse.jetty">
		<level value="WARN" />
		<appender-ref ref="EdalLogFileAppenderApiINFO" />
		<appender-ref ref="EdalLogFileAppenderApiERROR" />
	</logger>

	<logger name="com.gargoylesoftware.htmlunit">
		<level value="WARN" />
		<appender-ref ref="EdalLogFileAppenderApiINFO" />
		<appender-ref ref="EdalLogFileAppenderApiERROR" />
	</logger>

	<logger name="org.jboss.logging">
		<level value="WARN" />
		<appender-ref ref="EdalLogFileAppenderApiINFO" />
		<appender-ref ref="EdalLogFileAppenderApiERROR" />
	</logger>
	<logger name="com.mchange">
		<level value="WARN" />
		<appender-ref ref="EdalLogFileAppenderApiINFO" />
		<appender-ref ref="EdalLogFileAppenderApiERROR" />
	</logger>

	<logger name="eDAL-API">
		<level value="INFO" />
		<appender-ref ref="ConsoleAppenderAPI" />
		<appender-ref ref="EdalLogFileAppenderApiINFO" />
		<appender-ref ref="EdalLogFileAppenderApiERROR" />
	</logger>

	<logger name="IndexWriterThread">
		<level value="WARN" />
		<appender-ref ref="EdalLogFileAppenderApiINFO" />
		<appender-ref ref="EdalLogFileAppenderApiERROR" />
	</logger>
	<logger name="org.reflections.Reflections">
		<level value="INFO" />
		<appender-ref ref="EdalLogFileAppenderApiINFO" />
		<appender-ref ref="EdalLogFileAppenderApiERROR" />
	</logger>
	<root></root>

</log4j:configuration>
New to GrepCode? Check out our FAQ X