<?xml version="1.0" encoding="UTF-8" ?>
<Configuration>
	<Appenders>
		<Console name="STDOUT" target="SYSTEM_OUT">
			<PatternLayout pattern="%-6r %d{ISO8601} [%10.10t] %-5p %40.40c %x - %m%n"/>
		</Console>
		
		<RollingFile name="ROLLING" fileName="testing.rolling.log" filePattern="testing.rolling-%i.log">
			<PatternLayout pattern="%-6r %d{ISO8601} [%15.15t] %-5p %30.30c %x - %m%n" />
			<Policies>
				<SizeBasedTriggeringPolicy size="100KB" />
			</Policies>
			<DefaultRolloverStrategy max="4"/>
		</RollingFile>	
	</Appenders>
	<Loggers>
		<Logger name="org.springframework" level="WARN"/>

		<Logger name="org.springframework.transaction" level="WARN"/>
		
		<Logger name="org.springframework.aop" level="ERROR"/>
		
		<Logger name="gov.va.med.cds.ars" level="WARN"/>
		
		<Logger name="org.hibernate" level="ERROR">
			<AppenderRef ref="STDOUT" />
		</Logger>
		
		<Logger name="gov.va.med.cds.ars.properties" level="DEBUG">
			<AppenderRef ref="STDOUT" />
		</Logger>
		
		<Logger name="org.hibernate.cfg.Environment" level="ERROR">
			<AppenderRef ref="STDOUT" />
		</Logger>
		
		<Logger name="org.apache.commons.dbcp2" level="WARN">
			<AppenderRef ref="STDOUT" />
		</Logger>
	
		<!-- ======================= -->
		<!-- Setup EELS logger       -->
		<!-- ======================= -->
		<Logger name="gov.va.med.exception.client" level="WARN" additivity="true">
			<AppenderRef ref="STDOUT" />
			<AppenderRef ref="ROLLING" />
		</Logger>
		
		<Root level="WARN">
			<AppenderRef ref="STDOUT" />
			<AppenderRef ref="ROLLING" />
		</Root>
	</Loggers>

</Configuration>