[logback-user] Log Filtering base on issuing class (%C)

Gonzalo Vasquez gvasquez at altiuz.cl
Wed May 30 22:57:12 CEST 2012


Absolutely right!!! The pattern was:

      <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-40([%thread] %C{0} $logger) %msg%n</pattern>

Instead of

      <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-40([%thread] %C{0} %logger) %msg%n</pattern>

Now I'll try filtering based on the logger approach!

Gonzalo Vásquez Sáez
Gerente Investigación y Desarrollo (R&D)
Altiuz Soluciones Tecnológicas de Negocios Ltda.
Av. Nueva Tajamar 555 Of. 802, Las Condes
(56-2) 335 2461
gvasquez at altiuz.cl
http://www.altiuz.cl
 


El 30-05-2012, a las 16:28, ceki escribió:

> 
> The pattern %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n" does not match the output sent in your message. You probably have another config file lying around with $logger instead of %logger in the pattern.
> 
> On 30.05.2012 22:14, Gonzalo Vasquez wrote:
>> Strange, but I'll check as I'm getting the following kind of messages:
>> 
>> 16:09:35,447 INFO [STDOUT] 2012-05-30 16:09:35.447 [RMI TCP
>> Connection(4)-127.0.0.1] QueryResultImpl $logger retrieved ScoreNodes in
>> 0 ms (0)
> 
> [snip]
> 
>> Using this pattern:
>> 
>> <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
>> 
>> 
>> So it seems that $logger is the logger name, isn't it?
> 
> 
> -- 
> Ceki
> http://twitter.com/#!/ceki
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20120530/eec9b83b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Firma_medio ambiente_mail.jpg
Type: image/jpeg
Size: 41737 bytes
Desc: not available
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20120530/eec9b83b/attachment-0001.jpg>


More information about the Logback-user mailing list