[logback-user] filtering by logger name in logback console plugin

Kearney, Joe Joe.Kearney at gsacapital.com
Mon Mar 8 13:17:50 CET 2010


Excellent, thanks. I'll do that.

-----Original Message-----
From: logback-user-bounces at qos.ch [mailto:logback-user-bounces at qos.ch] On Behalf Of Ceki Gülcü
Sent: 08 March 2010 12:17
To: logback users list
Subject: Re: [logback-user] filtering by logger name in logback console plugin


This is the correct venue. The console-plugin has been almost completely 
re-written but not yet released. I suggest that you file a bug report describing 
this problem so that it does not occur in the new console plugin.

On 08/03/2010 1:13 PM, Kearney, Joe wrote:
> HI all,
>
> I didn't see any responses to this. Is this the wrong place to ask about the console plugin? Or has anyone had any issues like this with the EvaluatorFilter, for example?
>
> Thanks,
> Joe
>
> -----Original Message-----
> From: logback-user-bounces at qos.ch [mailto:logback-user-bounces at qos.ch] On Behalf Of Kearney, Joe
> Sent: 04 March 2010 12:29
> To: 'logback-user at qos.ch'
> Subject: [logback-user] filtering by logger name in logback console plugin
>
> Hi,
>
> I'm trying to use the Logback Eclipse plugin, Eclipse 3.5.2, Logback Console plugin 1.1.0. Works a charm, until I try to write any more sophisticated filters than the only example of
> 	Level>= INFO
> and similar.
>
> I'm trying to filter to accept DEBUG messages from my code, but deny such messages from Spring, whose loggers are called "org.springframework...".
>
> I try the following and keep getting "The new expression is not correct." There is no error in the Eclipse error log or in the console.
> 	logger.contains("org.springframework")
> 	event.getLoggerName().contains("org.springframework")
>
> (Guessing types of these supplied variables from http://logback.qos.ch/manual/filters.html#evalutatorFilter.)
>
> Filtering on the message appears to be accepted by the config window:
> 	message.contains("org.springframework")
>
> But it doesn't apply any filtering to the logger name. (Here the logger name actually gets compacted to "o.s...." but trying other, non-compacted, segments of the name doesn't help either.)
>
> For now I can filter out things like "reating instance" or "bean", but that's hardly satisfactory.
>
> What am I doing wrong with the logger name/event?
>
> Thanks,
> Joe
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user

_______________________________________________
Logback-user mailing list
Logback-user at qos.ch
http://qos.ch/mailman/listinfo/logback-user


More information about the Logback-user mailing list