[logback-user] How to add less than (<) and greater than (>) in logback.xml

Ceki ceki at qos.ch
Fri Jan 19 14:27:05 CET 2018


Hello Debraj,

Have you tried replacing '<' with '<' and '>' with '>'  ?

--
Ceki

On 19.01.2018 13:40, Debraj Manna wrote:
> Crossposting from stackoverflow 
> <https://stackoverflow.com/questions/48341348/how-to-add-less-than-and-greater-than-in-logback-xml>
> 
> Can someone let me know how can I add less than (<) and greater than (>) 
> sign in |logback.xml|?
> 
> I want to have a |encoder.pattern| like below
> 
> |<encoder><pattern>%p [%d{yyyy-MM-dd 
> HH:mm:ss,SSS}]%c{3}:[%C{1}:%M:%L]-[%t]-%replace(%.-20480m){'[^A-Za-z0-9=<>:@\\-\\[\\]\n\\s!]','_'}%n 
> </pattern><encoder>|
> 
> But this is failing because of the presence of |<>| ?
> 
> 
> Thanks,
> Debraj
> 
> 
> 
> 
> _______________________________________________
> 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