Re: Logging custom levels using log4j
Praveen Kumar Hasthalapuram <praveen.hasthal <at> gmail.com>
2006-01-02 15:48:05 GMT
Currenlty we are using log4j1.2 , but to support filters we need to use
Will it be major changes needed to change it to higher version?
And currently we are using log4j.properties for all types of logging.
In addition to that, to configure filters, we need to use log4j.xml for
Can we have both the type of configurations? (i.e log4j.xml for filters and
log4j.properties for others)
Which one will take precedence?
On 12/30/05, Scott Deboy <sdeboy <at> comotivsystems.com> wrote:
> I don't think you can specify filters in the properties file format - use
> an xml config file instead.
> Here's an example:
> <appender name="someAppender" class="org.apache.log4j.FileAppender">
> <layout class="org.apache.log4j.SimpleLayout"/>
> <filter class="org.apache.log4j.varia.ExpressionFilter">
> <param name="Expression" value="msg ~= blah" />
> <param name="AcceptOnMatch" value="true"/>