One of my co-workers found it. Thanks if anyone was looking into this for me.

From the FAQ
------------------------
Is it possible to direct log output to different appenders by level?
Yes it is. Setting the Threshold option of any appender extending AppenderSkeleton, (most log4j appenders extend AppenderSkeleton) to filter out all log events with lower level than the value of the threshold option.
For example, setting the threshold of an appender to DEBUG also allow INFO, WARN, ERROR and FATAL messages to log along with DEBUG messages. This is usually acceptable as there is little use for DEBUG messages without the surrounding INFO, WARN, ERROR and FATAL messages. Similarly, setting the threshold of an appender to ERROR will filter out DEBUG, INFO and WARN messages but not ERROR or FATAL messages.
This policy usually best encapsulates what the user actually wants to do, as opposed to her mind-projected solution.
See examples/sort4.lcf for an example threshold configuration.
If you must filter events by exact level match, then you can attach a LevelMatchFilter to any appender to filter out logging events by exact level match.
Hi All,
I have a configuration "stumper"... Using the PropertiesConfigurator (from a properties file, not doing any special programming if at all possible), I would like to set up my loggers to do the following:
Log FATAL->ERROR to appender 1
Log FATAL->DEBUG to appender 2
So...
---------------------
log.debug("one");
log.info("two");
log.warn("three");
log.error("four");
log.fatal("five");
Appender/log 1
--------------------
message-> four
message-> five
Appender/log 2
---------------------
message -> one
message -> two
message -> three
message -> four
message -> five
Thank you all so much for your help.
Scott

_________________________________________________________________
MSN 8: advanced junk mail protection and 2 months FREE*. http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



Reply via email to