[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBOSS log rotation

ran_sushmi do-not-reply at jboss.com
Mon Nov 24 03:21:03 EST 2008


hi,

thanks, for your answer. This was helpful, but there is this code in our JBOSS application 'log4j.xml' file which is difficult to understand. I am pasting the initial contents of the file off which I am not able to make out much. The contents are:-

-------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<!-- ===================================================================== -->
<!--                                                                       -->
<!--  Log4j Configuration                                                  -->
<!--                                                                       -->
<!-- ===================================================================== -->

<!-- $Id: log4j.xml,v 1.13.2.13 2004/05/11 16:33:46 belaban Exp $ -->

<!--
   | For more configuration infromation and examples see the Jakarta Log4j
   | owebsite: http://jakarta.apache.org/log4j
 -->


<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">

   <!-- ================================= -->
   <!-- Preserve messages in a local file -->
   <!-- ================================= -->

   <!-- A time/date based rolling appender -->
   
      
      
      

      <!-- Rollover at midnight each day
      <param name="DatePattern" value="'.'yyyy-MM-dd"/>
      -->

      <!-- Rollover at the top of each hour
      <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
      -->

      
         <!-- The default pattern: Date Priority [Category] Message\n -->
         

         <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
         
          -->
      
   

   <!-- A size based file rolling appender -->
   
     
     
     
     
     

     
       
     
   

   <!-- ============================== -->
   <!-- Append messages to the console -->
   <!-- ============================== -->

   
      
      
      

      
         <!-- The default pattern: Date Priority [Category] Message\n -->
         
      
   

   
      
      
      
      
         
      
   

   <!-- ====================== -->
   <!-- More Appender examples -->
   <!-- ====================== -->

   <!-- Buffer events and log them asynchronously
   
     
     <appender-ref ref="FILEDATE"/>
     <appender-ref ref="CONSOLE"/>
     <appender-ref ref="SMTP"/>
   
   -->

   <!-- EMail events to an administrator
   
     
     
     
     
     
     
     
     
       
     
   
   -->

   <!-- Syslog events
   
     
     
     
     
   
   -->
---------------------------------------------------------------------------------------------

Can, the lines of the code be explained. By the way, is there any way to upload a file on the forum.

I hope, my question is clear.

Please, help in solving the doubt.

regards

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191618#4191618

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191618



More information about the jboss-user mailing list