[logback-user] how to disable such logeger: LoggerFactory.getLogger("<< " + name + " >>");

Ralph Goers rgoers at apache.org
Wed Aug 11 09:00:34 CEST 2010


You would have to have a declaration for 

<logger name="&lt;&lt;name&gt;&gt">

for every name.  The parent/child relationship in Logback requires the use of "." in the name. To use the logger named the way you have it the actuall logger name would have to be "<<." + name + ">>".

Ralph

On Aug 10, 2010, at 8:36 AM, Juraj Petko wrote:

> hello, how could i set logging level to ERROR for such an logger:
> LoggerFactory.getLogger("<< " + name + " >>");
> 
> tried this in logback.xml, but doesn't work:
> 
> <logger name="&lt;&lt;">
> <level value="ERROR" />
> </logger>
> 
> thanks a lot, j
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user



More information about the Logback-user mailing list