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 - RMI Client, FileChooser and WebDAV

-->
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
	debug="false">

	<!-- Console Appender -->
	<appender name="ConsoleAppenderClient" 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="EdalLogFileAppenderClientINFO" class="org.apache.log4j.DailyRollingFileAppender">
		<param name="file" value="${user.home}/.eDAL/eDAL_CLIENT_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="EdalLogFileAppenderClientERROR" class="org.apache.log4j.DailyRollingFileAppender">
		<param name="file" value="${user.home}/.eDAL/eDAL_CLIENT_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">
		<level value="WARN" />
		<appender-ref ref="EdalLogFileAppenderClientINFO" />
		<appender-ref ref="EdalLogFileAppenderClientERROR" />
	</logger>

	<logger name="io.milton">
		<level value="WARN" />
		<appender-ref ref="EdalLogFileAppenderClientINFO" />
		<appender-ref ref="EdalLogFileAppenderClientERROR" />
	</logger>

	<logger name="eu.medsea">
		<level value="WARN" />
		<appender-ref ref="EdalLogFileAppenderClientINFO" />
		<appender-ref ref="EdalLogFileAppenderClientERROR" />
	</logger>

	<logger name="com.healthmarketscience">
		<level value="WARN" />
		<appender-ref ref="EdalLogFileAppenderClientINFO" />
		<appender-ref ref="EdalLogFileAppenderClientERROR" />
	</logger>

	<logger name="eDAL-Client">
		<level value="INFO" />
		<appender-ref ref="ConsoleAppenderClient" />
		<appender-ref ref="EdalLogFileAppenderClientINFO" />
		<appender-ref ref="EdalLogFileAppenderClientERROR" />
	</logger>

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