[logback-user] How to add less than (<) and greater than (>) in logback.xml
Debraj Manna
subharaj.manna at gmail.com
Fri Jan 19 13:40:58 CET 2018
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20180119/e28f5cad/attachment.html>
More information about the logback-user
mailing list