OK, thx.
That works.
<RollingRandomAccessFile....>
<ThreadContextMapFilter onMatch="DENY" onMismatch="NEUTRAL"
operator="or">
<KeyValuePair key="page" value="file/null"/>
</ThreadContextMapFilter>
....
</RollingRandomAccessFile>
Mit freundlichen Grüßen
Herr Dipl.-Inf. L. Alice
Softwareentwicklung
-----Ursprüngliche Nachricht-----
Von: ralph.goers @dslextreme.com [mailto:[email protected]] Im Auftrag
von Ralph Goers
Gesendet: Freitag, 4. Oktober 2013 15:35
An: Log4J Users List
Betreff: Re: Filtering on MDC values
Have you looked at the ThreadContextMapFilter?
Ralph
> On Oct 4, 2013, at 2:20 AM, Luigi Alice <[email protected]> wrote:
>
> Hello,
>
> Is there a way to filter out LogEntries written with a specific MDC value?
> I use <RegexFilter> but it only processes the message content.
> Example: I don't want to log entries when the MDC value "page" is set to
> "file/download".
>
>
> Regards
>
> Mr. L. Alice
> Software developer
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]