You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Tanguy Le Gall <ta...@airfrance.fr> on 2008/09/11 16:41:29 UTC
Question reguarding RollingFileAppender
Hello,
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"
class="org.apache.log4j.RollingFileAppender">
<param name="File" value="/tmp/tesxt.txt">
<param name="maxBackupIndex" value="0"/>
<param name="maxSize" value="2MB" />
</appender>
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
rights.
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...
Regards,
Tanguy Le Gall