<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
   <appender name="appender" class="org.apache.log4j.RollingFileAppender">
     <param name="File" value="/opt/tandbergtv/cms/log/jboss.log"/>
     <param name="Append" value="true"/>
     <param name="MaxFileSize" value="10MB"/>
     <param name="MaxBackupIndex" value="10"/>
     <layout class="org.apache.log4j.PatternLayout">
       <param name="ConversionPattern" value="%d{DATE} %5p [CMS] [%t] %C{1}.%M() - %m%n"/>
     </layout>	    
   </appender>

   <appender name="alerts" 
   	 class="com.n2bb.LoggerModule.log4j.UDPAppender">
          <param name="UDPHost" value="Alerts"/>
          <param name="UDPPort" value="4489"/>
          <layout class="org.apache.log4j.PatternLayout">
          	<param name="ConversionPattern" value="[CMS]-%m"/>
          </layout>
    </appender>
    
   <category name="com.tandbergtv">
      <priority value="INFO"></priority>
      <appender-ref ref="alerts"/>
   </category>

   <category name="com.n2bb">
      <priority value="INFO"></priority>
      <appender-ref ref="alerts"/>
   </category>

   <category name="com.ttv">
      <priority value="INFO"></priority>
   </category>
   
   <category name="com.ericsson">
      <priority value="INFO"></priority>
   </category>

   <category name="com.twc">
      <priority value="INFO"></priority>
   </category>

   <category name="org.apache">
      <priority value="error"/>
   </category>

   <category name="org.quartz">
      <priority value="error"/>
   </category>

   <category name="org.apache.catalina.core">
      <priority value="off"/>
   </category>
 
   <category name="jacorb">
      <priority value="WARN"/>
   </category>
   
   <category name="org.jgroups">
      <priority value="WARN"/>
   </category>
 
   <category name="org.java.plugin">
      <priority value="ERROR"/>
   </category>
  
   <category name="org.jboss">
      <priority value="warn"/>
   </category>

   <category name="org.jbpm">
      <priority value="off"/>
   </category>

   <category name="org.jboss.ejb3.interceptors">
      <priority value="ERROR"></priority>
   </category>

   <category name="org.jboss.slf4j.JBossLoggerAdapter">
      <priority value="error"></priority>
   </category>

   <category name="org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog">
      <priority value="error" />
   </category>

   <root>
	<priority value="warn"/>
	<appender-ref ref="appender"/>
	
   </root>

</log4j:configuration>
