logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Didier Bretin <...@informactis.com>
Subject DailyRollingFileAppender definition
Date Fri, 06 Dec 2002 07:37:34 GMT
Hello,

	I try to set up the configuration for log4j by using the
log4jconf.xml file. Here is my file:

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

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

        <appender name="A1" class="org.apache.log4j.DailyRollingFileAppender">
            <param name="File"   value="/var/datas/tomcat/giphar/log/iaPublish.log" />
            <param name="Append" value="true" />
            <param name="DatePattern" value="'.'yyyy-MM-dd" />
            <layout class="org.apache.log4j.PatternLayout">
                <param name="ConversionPattern" value="%d{dd MMM yyyy HH:mm:ss,SSS} %-5p
%c %x - (%C:%L) - %m\n"/>
            </layout>
        </appender>

        <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
                <layout class="org.apache.log4j.PatternLayout">
                   <param name="ConversionPattern"
                          value="%r %d{dd MMM yyyy HH:mm:ss,SSS} %-5p %c %x - (%F:%L) - %m"/>
                </layout>
        </appender>

        <category name="com.informactis.iaPublish">
          <!--<priority value="debug" />-->
          <appender-ref ref="A1" />
        </category>
</log4j:configuration>

Perharps I forgot something but nothing change ... Can you help me ?

Thanks.
-- 
            .------------------------------------------------.
    .^.     | Didier Bretin, France | dbr@informactis.com    |
    /V\     |-----------------------| www.informactis.com    |
   // \\    |                       `------------------------|
  /(   )\   | Visit: http://www.vim.org/                     |
   ^^-^^    `------------------------------------------------'

--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message