logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabian Jacquet <fabian.jacq...@gmail.com>
Subject Re: How to set the thresh hold option to the appender in xml config
Date Tue, 26 Oct 2010 12:10:31 GMT
Hi,

I think you could use something like that:
<appender name="Appender1"
class="org.apache.log4j.rolling.RollingFileAppender">
    <param name="threshold" value="error"/>
    <layout class="org.apache.log4j.PatternLayout"></layout>
</appender>

On Tue, Oct 26, 2010 at 11:51, rajendraprasadc <rajendra_2112@yahoo.co.in>wrote:

>
> Hi I am using apache log4cxx version 0.10.0, and i am facing the problem to
> configure thresh hold option to the appender, can any body let me know the
> sample configuration for threshold for appender
>
> Here is the configuration i am using for my logging
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <!-- set the debug value to true/false to enable/disable of showing the
> log4cxx debug messages -->
> <log4j:configuration xmlns:log4j="http://logging.apache.org/"
> debug="true">
>        <appender name="Appender1"
> class="org.apache.log4j.rolling.RollingFileAppender">
>
>
>
>                <layout class="org.apache.log4j.PatternLayout">
>
>                </layout>
>        </appender>
>        <appender name="Appender2"
> class="org.apache.log4j.rolling.RollingFileAppender">
>
>
>
>                <layout class="org.apache.log4j.PatternLayout">
>
>                </layout>
>        </appender>
>        <logger name="testProcess">
>                <!-- <priority value="TRACE"/> -->
>                <level value="TRACE"/>
>                <appender-ref ref="Appender1" />
>                <appender-ref ref="Appender2" />
>        </logger>
> </log4j:configuration>
> --
> View this message in context:
> http://old.nabble.com/How-to-set-the-thresh-hold-option-to-the-appender-in-xml-config-tp30055937p30055937.html
> Sent from the Log4cxx - Users mailing list archive at Nabble.com.
>
>

Mime
View raw message