<?xml version="1.0" encoding="UTF-8" ?>
<Configuration packages="gov.va.med.cds.log4j">
	<Properties>
		<Property name="log-path">servers/${sys:weblogic.Name}/logs</Property>
	</Properties>
	<Appenders>
		<Console name="STDOUT" target="SYSTEM_OUT">
			<PatternLayout pattern="%-6r %d{ISO8601} [%10.10t] %-5p %40.40c %x - %m%n"/>
		</Console>
			
		<!-- <SpringAwareAppenderProxy name="JMS">
			<springConfigResourceType  value="CLASSPATH" /> May be FILE or CLASSPATH only.
			<springConfigurations value="classpath:gov/va/med/cds/log4j/config/jms-app-logging-context.xml" />
		</SpringAwareAppenderProxy>
		
		<SpringAwareDbAppender name="DB">
			<springConfigResourceType  value="CLASSPATH" /> May be FILE or CLASSPATH only.
			<springConfigurations value="classpath:gov/va/med/cds/config/weblogicContext.xml,classpath:gov/va/med/cds/config/loggerContext.xml"/>
		</SpringAwareDbAppender> -->
		
		<SpringAwareAppenderProxy name="JMS" 
			springConfigResourceType="CLASSPATH"
			springConfigurations="classpath:gov/va/med/cds/log4j/config/jms-app-logging-context.xml">
			<PatternLayout pattern="%-6r %d{ISO8601} [%10.10t] %-5p %40.40c %x - %m%n"/>
		</SpringAwareAppenderProxy><!-- 
		<SpringAwareDbAppender name="DB">
			<springConfigResourceType>CLASSPATH</springConfigResourceType> May be FILE or CLASSPATH only.
			<springConfigurations>classpath:gov/va/med/cds/config/weblogicContext.xml,classpath:gov/va/med/cds/config/loggerContext.xml</springConfigurations>
		</SpringAwareDbAppender> -->

	</Appenders>
	<Loggers>
	
		<Logger name="gov.va.med.cds" level="ERROR">
			<AppenderRef ref="JMS"/>
		</Logger>
	<!-- 
		<Logger name="gov.va.med.cds.log4j" level="FATAL">
			 <AppenderRef ref="DB"/>
		</Logger>
	 -->
	
		<Logger name="org.springframework" level="WARN"/>
	
		<Logger name="gov.va.med.cds.client" level="WARN"/>
		
		<Logger name="gov.va.med.soa" level="WARN"/>
		
		<Logger name="org.apache.commons.digester3.Digester" level="FATAL"/>
		
		<Logger name="gov.va.med.cds.client.functional.vhim3601.concurrent.allergy.writeFull.ConcurrentAllergyWriteTest" level="WARN"/>
		
		<Logger name="gov.va.med.cds.client.functional.vhim3601.concurrent.allergy.read.ConcurrentAllergyReadTest" level="WARN"/>
		
		<Logger name="gov.va.med.cds.util.XmlValidator" level="WARN"/>
		
		<Root level="WARN">
			<AppenderRef ref="STDOUT" />
		</Root>
	</Loggers>

</Configuration>
