logback.xml 739 Bytes
Newer Older
1 2 3 4
<configuration>
	<statusListener class="ch.qos.logback.core.status.OnConsoleStatusListener" />

	<appender name="FILE" class="ch.qos.logback.core.FileAppender">
Christian Wulf's avatar
Christian Wulf committed
5
		<file>main.log</file>
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
		<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
			<level>INFO</level>
		</filter>
		<append>false</append>
		<!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder 
			by default -->
		<encoder>
			<pattern>%msg%n</pattern>
		</encoder>
	</appender>

	<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
		<encoder>
			<pattern>%d{HH:mm:ss.SSS} %level %logger - %msg%n</pattern>
		</encoder>
	</appender>

	<root level="WARN">
		<appender-ref ref="CONSOLE" />
	</root>
</configuration>