You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Charlie Cano <Ch...@bangnetworks.com> on 2002/06/05 00:16:18 UTC

Excluding one category from root configuration

 

Hey all,

 

I'm trying to configure log4j in the following way:

 

I want every category with priority INFO or above to use, say Appender_A EXCEPT one specific category.

 

Basically, I'm looking for something like "exclude catetory X" in the <root> XML element of log4j.xml

 

Is there an easy way to do this?  

 

This is what I have now for my root tag:

 

<root>

    <priority value="INFO" />

    <appender-ref ref="EVENT_LOG" />

</root>

 

How can I EXCLUDE anything from Category_X from going to the EVENT_LOG appender?

 

- Charlie