<configuration>

	<!-- appender logging everything to STDOUT -->
	<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
		<filter class="org.pdfsam.ui.log.UpToInfoFilter" />
		<encoder>
			<pattern>%-5level %d{HH:mm:ss.SSS} %c{5}[%thread] %msg%n</pattern>
		</encoder>
	</appender>

	<!-- appender logging everything at WARN and above to STDERR -->
	<appender name="STDERR" class="ch.qos.logback.core.ConsoleAppender">
		<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
			<level>warn</level>
		</filter>

		<encoder>
			<pattern>%-5level %d{HH:mm:ss.SSS} %c[%thread] %msg%n%ex{full}
			</pattern>
		</encoder>
		<target>System.err</target>
	</appender>

	<logger name="org.sejda" level="INFO" />
	<logger name="org.pdfsam.eventstudio" level="ERROR" />	
	<logger name="org.pdfsam.injector" level="WARN" />
	<logger name="org.sejda.sambox" level="INFO" />
	<logger name="org.pdfsam" level="INFO" />
	<logger name="org.hibernate" level="WARN" />

	<root level="INFO">
		<appender-ref ref="STDOUT" />
		<appender-ref ref="STDERR" />
	</root>
</configuration>