logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tanguy Le Gall <talegall-...@airfrance.fr>
Subject Question reguarding RollingFileAppender
Date Thu, 11 Sep 2008 14:41:29 GMT

I'm trying to create a single log file with a security check on its size 
to prevent it from filling up the file system.
>From the log4j 1.2 and log4cxx documentation, it seems like I should be 
able to used the following configuration:

  <appender name="testAppender" 
    <param name="File" value="/tmp/tesxt.txt">
    <param name="maxBackupIndex" value="0"/>
    <param name="maxSize" value="2MB" />

However the example above does not work and leads to a core dump
I tried several other type of configuration with 
org.apache.log4j.rolling.RollingFileAppender without any luck either

I don't actually need want the file to roll, because I'm using log4cxx 
within an api which can be run by several users
on the same computer, and rolling leads to problems with file owner and 

Anybody else got something like this working?

Also, which log4J API does log4cxx now implements?  I saw in thread from 
2002 that is was mimicking the 1.3 log4j API,
 which has been dropped since...


Tanguy Le Gall

View raw message