[logback-user] default delimiter for MDC?

David Roussel nabble at diroussel.xsmail.com
Sun May 5 19:22:23 CEST 2013


Try

%X{req.xForwardedFor,NONE} 
 
But :- would make more sense. 

David

On 5 May 2013, at 18:18, Yoni Moses <yoni.moses at gmail.com> wrote:

> Hi,
> 
> I've been trying to use the new feature of the MDC without any luck.. it's probably a silly question, but can someone please post exact format for it?
> 
> I've tried it without any luck...
> 
> from what I've seen in the examples it seems like 
> 
> %X{req.xForwardedFor:-NONE} 
>  
> should work.. but for me it keeps on saying:
> ScanException: Expecting }
> 
> under Parser.expectCurlyRight
> 
> version is 1.0.12 with slf4j 1.7.5
> 
> 
> 
> Help is much appreciated ;)
> 
> -- 
> Cheers,
> Yoni
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user


More information about the Logback-user mailing list