[logback-user] Changing a logger's level for only one appender?
dirk ooms
dirk at onesparrow.com
Thu May 17 00:32:47 CEST 2007
To create a threshold filter inside an appender:
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>warn</level>
</filter>
hope this helps,
dirk
On Thursday 17 May 2007 00:20, Gerweck Andy - agerwe wrote:
> Hello,
>
>
>
> I have a couple of applications that create two log files: one with all
> debug statements for troubleshooting and another with just INFO and
> above for general information. The debug logs are erased after a day or
> two while the general log is kept for a month or longer.
>
>
>
> I apologize if I just missed this in the documentation, but is there an
> easy way to set the minimum level for a specific logger hierarchy on
> just a single appender. For example, I want com.example.* to write only
> WARN and above to my general log, but I still want its DEBUG statements
> in the debug log. I'm sure I could write my own filter or use an
> EvaluatorFilter, but this seems like such a common requirement that
> there would be a standard mechanism.
>
>
>
> Thanks,
> Andy
>
>
>
> ***************************************************************************
> The information contained in this communication is confidential, is
> intended only for the use of the recipient named above, and may be legally
> privileged.
>
> If the reader of this message is not the intended recipient, you are
> hereby notified that any dissemination, distribution or copying of this
> communication is strictly prohibited.
>
> If you have received this communication in error, please resend this
> communication to the sender and delete the original message or any copy
> of it from your computer system.
>
> Thank You.
> ***************************************************************************
>*
More information about the Logback-user
mailing list