All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mmand.1.5.1.source-code.log4j.xml Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd" >
<log4j:configuration>

	<appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
		<param name="Target" value="System.out" />
		<layout class="org.apache.log4j.PatternLayout">
			<!-- <param name="ConversionPattern" value="[%d{ISO8601}] %-5p [%c] %m 
				%n" /> -->
			<param name="ConversionPattern" value="[%-5p] command: [%c{1}] %m %n" />
		</layout>
	</appender>

	<appender name="STDERR" class="org.apache.log4j.ConsoleAppender">
		<param name="Target" value="System.err" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="[%d{ISO8601}] %-5p [%c] %m %n" />
		</layout>
		<filter class="org.apache.log4j.varia.LevelRangeFilter">
			<param name="LevelMin" value="ERROR" />
			<param name="LevelMax" value="FATAL" />
		</filter>
	</appender>

	<appender name="SW_ROLLING_FILE" class="org.apache.log4j.RollingFileAppender">
		<param name="File" value="log/command.log" />
		<param name="Append" value="true" />
		<param name="MaxFileSize" value="500KB" />
		<param name="MaxBackupIndex" value="5" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="[%d{ISO8601}] %-5p %m%n" />
		</layout>
	</appender>

	<logger name="de.mwolff" additivity="false">
		<level value="debug" />
		<appender-ref ref="SW_ROLLING_FILE" />
		<appender-ref ref="STDOUT" />
	</logger>
	<logger name="de.neusta" additivity="false">
		<level value="debug" />
		<appender-ref ref="SW_ROLLING_FILE" />
		<appender-ref ref="STDOUT" />
	</logger>

	<root>
		<level value="DEBUG" />
		<appender-ref ref="STDERR" />
	</root>


</log4j:configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy