logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill.Blal...@Certegy.com
Subject How to change Threshhold level of run appender in program
Date Fri, 15 Aug 2003 15:57:19 GMT

Hi All:

I hope you can help me with this:

I have 3 appenders running
      A1 - writes log entries to the console
      A2 - write DEBUG and INFO log entries to a file
      A3 - write WARN and above entries to a file

As I develop the program I want to change the threshhold level of A1.  When
I am working on a section of code I want to set A1 to send DEBUG entries to
the console while that code is executing.  Something like

code under development

The closest thing I have come up with is

- clear existing filters from A1
- add a LevelMatchFilter for DEBUG


- clear existing filters from A1
- add a LevelMatchFilter for INFO

Does anyone have an other ideas how to do this?


To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org

View raw message