2006/unicorn/WebContent/WEB-INF/conf log4j.xml,NONE,1.1

Update of /sources/public/2006/unicorn/WebContent/WEB-INF/conf
In directory hutz:/tmp/cvs-serv29292/WebContent/WEB-INF/conf

Added Files:
	log4j.xml 
Log Message:
log4j now uses an xml properties file

--- NEW FILE: log4j.xml ---
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">

	<appender name="gui" class="org.apache.log4j.lf5.LF5Appender">
		<param name="MaxNumberOfRecords" value="10000" />
		<param name="CallSystemExitOnClose" value="false" />
		<param name="Threshold" value="info" />
	</appender>

	<appender name="console" class="org.apache.log4j.ConsoleAppender">
		<param name="Threshold" value="info" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%-5p (%F:%L) : %m%n" />
		</layout>
	</appender>
	
	<appender name="level-error" class="org.apache.log4j.RollingFileAppender">
		<param name="File" value="${unicorn.home}/WEB-INF/logs/level/error.log" />
		<param name="MaxFileSize" value="1024KB" />
		<param name="MaxBackupIndex" value="1" />
		<param name="Threshold" value="error" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d{yyyy/MM/dd HH:mm:ss} %-5p (%F:%L) %m%n" />
		</layout>
		<filter class="org.apache.log4j.varia.LevelMatchFilter">
			<param name="LevelToMatch" value="error" />
			<param name="AcceptOnMatch" value="true" />
		</filter>
		<filter class="org.apache.log4j.varia.DenyAllFilter" />
	</appender>

	<appender name="level-warning" class="org.apache.log4j.RollingFileAppender">
		<param name="File" value="${unicorn.home}/WEB-INF/logs/level/warning.log" />
		<param name="MaxFileSize" value="1024KB" />
		<param name="MaxBackupIndex" value="1" />
		<param name="Threshold" value="warning" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d{yyyy/MM/dd HH:mm:ss} %-5p (%F:%L) %m%n" />
		</layout>
		<filter class="org.apache.log4j.varia.LevelMatchFilter">
			<param name="LevelToMatch" value="warning" />
			<param name="AcceptOnMatch" value="true" />
		</filter>
		<filter class="org.apache.log4j.varia.DenyAllFilter" />
	</appender>
	
	<appender name="level-info" class="org.apache.log4j.RollingFileAppender">
		<param name="File" value="${unicorn.home}/WEB-INF/logs/level/info.log" />
		<param name="MaxFileSize" value="1024KB" />
		<param name="MaxBackupIndex" value="1" />
		<param name="Threshold" value="info" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d{yyyy/MM/dd HH:mm:ss} %-5p (%F:%L) %m%n" />
		</layout>
		<filter class="org.apache.log4j.varia.LevelMatchFilter">
			<param name="LevelToMatch" value="info" />
			<param name="AcceptOnMatch" value="true" />
		</filter>
		<filter class="org.apache.log4j.varia.DenyAllFilter" />
	</appender>
	
	<appender name="level-debug" class="org.apache.log4j.RollingFileAppender">
		<param name="File" value="${unicorn.home}/WEB-INF/logs/level/debug.log" />
		<param name="MaxFileSize" value="1024KB" />
		<param name="MaxBackupIndex" value="1" />
		<param name="Threshold" value="debug" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d{yyyy/MM/dd HH:mm:ss} %-5p (%F:%L) %m%n" />
		</layout>
		<filter class="org.apache.log4j.varia.LevelMatchFilter">
			<param name="LevelToMatch" value="debug" />
			<param name="AcceptOnMatch" value="true" />
		</filter>
		<filter class="org.apache.log4j.varia.DenyAllFilter" />
	</appender>
	
	<appender name="level-trace" class="org.apache.log4j.RollingFileAppender">
		<param name="File" value="${unicorn.home}/WEB-INF/logs/level/trace.log" />
		<param name="MaxFileSize" value="1024KB" />
		<param name="MaxBackupIndex" value="1" />
		<param name="Threshold" value="trace" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d{yyyy/MM/dd HH:mm:ss} %-5p (%F:%L) %m%n" />
		</layout>
		<filter class="org.apache.log4j.varia.LevelMatchFilter">
			<param name="LevelToMatch" value="trace" />
			<param name="AcceptOnMatch" value="true" />
		</filter>
		<filter class="org.apache.log4j.varia.DenyAllFilter" />
	</appender>
	
	<appender name="package-unicorn" class="org.apache.log4j.RollingFileAppender">
		<param name="File" value="${unicorn.home}/WEB-INF/logs/all.log" />
		<param name="MaxFileSize" value="1024KB" />
		<param name="MaxBackupIndex" value="1" />
		<param name="Threshold" value="trace" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d{yyyy/MM/dd HH:mm:ss} %-5p (%F:%L) %m%n" />
		</layout>
	</appender>	
	
	<appender name="package-action" class="org.apache.log4j.RollingFileAppender">
		<param name="File" value="${unicorn.home}/WEB-INF/logs/package/action.log" />
		<param name="MaxFileSize" value="1024KB" />
		<param name="MaxBackupIndex" value="1" />
		<param name="Threshold" value="trace" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d{yyyy/MM/dd HH:mm:ss} %-5p (%F:%L) %m%n" />
		</layout>
	</appender>	
	
	<appender name="package-contract" class="org.apache.log4j.RollingFileAppender">
		<param name="File" value="${unicorn.home}/WEB-INF/logs/package/contract.log" />
		<param name="MaxFileSize" value="1024KB" />
		<param name="MaxBackupIndex" value="1" />
		<param name="Threshold" value="trace" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d{yyyy/MM/dd HH:mm:ss} %-5p (%F:%L) %m%n" />
		</layout>
	</appender>	
	
	<appender name="package-input" class="org.apache.log4j.RollingFileAppender">
		<param name="File" value="${unicorn.home}/WEB-INF/logs/package/input.log" />
		<param name="MaxFileSize" value="1024KB" />
		<param name="MaxBackupIndex" value="1" />
		<param name="Threshold" value="trace" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d{yyyy/MM/dd HH:mm:ss} %-5p (%F:%L) %m%n" />
		</layout>
	</appender>	
	
	<appender name="package-output" class="org.apache.log4j.RollingFileAppender">
		<param name="File" value="${unicorn.home}/WEB-INF/logs/package/output.log" />
		<param name="MaxFileSize" value="1024KB" />
		<param name="MaxBackupIndex" value="1" />
		<param name="Threshold" value="trace" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d{yyyy/MM/dd HH:mm:ss} %-5p (%F:%L) %m%n" />
		</layout>
	</appender>	
	
	<appender name="package-request" class="org.apache.log4j.RollingFileAppender">
		<param name="File" value="${unicorn.home}/WEB-INF/logs/package/request.log" />
		<param name="MaxFileSize" value="1024KB" />
		<param name="MaxBackupIndex" value="1" />
		<param name="Threshold" value="trace" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d{yyyy/MM/dd HH:mm:ss} %-5p (%F:%L) %m%n" />
		</layout>
	</appender>	
	
	<appender name="package-response" class="org.apache.log4j.RollingFileAppender">
		<param name="File" value="${unicorn.home}/WEB-INF/logs/package/response.log" />
		<param name="MaxFileSize" value="1024KB" />
		<param name="MaxBackupIndex" value="1" />
		<param name="Threshold" value="trace" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d{yyyy/MM/dd HH:mm:ss} %-5p (%F:%L) %m%n" />
		</layout>
	</appender>	
	
	<appender name="package-tasklist" class="org.apache.log4j.RollingFileAppender">
		<param name="File" value="${unicorn.home}/WEB-INF/logs/package/tasklist.log" />
		<param name="MaxFileSize" value="1024KB" />
		<param name="MaxBackupIndex" value="1" />
		<param name="Threshold" value="trace" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d{yyyy/MM/dd HH:mm:ss} %-5p (%F:%L) %m%n" />
		</layout>
	</appender>	
	
	<appender name="package-util" class="org.apache.log4j.RollingFileAppender">
		<param name="File" value="${unicorn.home}/WEB-INF/logs/package/util.log" />
		<param name="MaxFileSize" value="1024KB" />
		<param name="MaxBackupIndex" value="1" />
		<param name="Threshold" value="trace" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d{yyyy/MM/dd HH:mm:ss} %-5p (%F:%L) %m%n" />
		</layout>
	</appender>	

	<logger name="org.apache.Velocity">
		<level value="debug"/>
	</logger>

	<logger name="org.w3c.unicorn.Framework">
		<level value="debug"/>
	</logger>
	
	<logger name="org.w3c.unicorn">
		<level value="debug"/>
		<appender-ref ref="package-unicorn" />
	</logger>
	
	<logger name="org.w3c.unicorn.action">
		<level value="debug"/>
		<appender-ref ref="package-action" />
	</logger>
	
	<logger name="org.w3c.unicorn.contract">
		<level value="debug"/>
		<appender-ref ref="package-contract" />
	</logger>
	
	<logger name="org.w3c.unicorn.input">
		<level value="debug"/>
		<appender-ref ref="package-input" />
	</logger>
	
	<logger name="org.w3c.unicorn.output">
		<level value="debug"/>
		<appender-ref ref="package-output" />
	</logger>
	
	<logger name="org.w3c.unicorn.request">
		<level value="debug"/>
		<appender-ref ref="package-request" />
	</logger>
	
	<logger name="org.w3c.unicorn.response">
		<level value="debug"/>
		<appender-ref ref="package-response" />
	</logger>
	
	<logger name="org.w3c.unicorn.tasklist">
		<level value="debug"/>
		<appender-ref ref="package-tasklist" />
	</logger>
	
	<logger name="org.w3c.unicorn.tasklistree">
		<level value="debug"/>
		<appender-ref ref="package-tasklist" />
	</logger>
	
	<logger name="org.w3c.unicorn.util">
		<level value="debug"/>
		<appender-ref ref="package-util" />
	</logger>
	
	<root>
		<level value="info"/>
		<appender-ref ref="level-error" />
		<appender-ref ref="level-warning" />
		<appender-ref ref="level-info" />
		<appender-ref ref="level-debug" />
		<appender-ref ref="level-trace" />
		<appender-ref ref="console" />
		<appender-ref ref="gui" />
	</root>

</log4j:configuration>

Received on Friday, 4 September 2009 12:30:23 UTC