1
votes

i'm trying to use logback to mask more than one entry in the log file but it seems that the pattern tag not accept more than one replacement, please help me to mask more than one

here is what i do and working fine %d{HH:mm:ss.SSS} [%thread] %-5level %logger{35} -%replace(%msg{'<PIN>.</PIN>',
'<PIN>
***</PIN>'}%n

but i want to add multiple replacement for example i want to add also the below but it didn't accept

%replace(%msg){'<Username >(.)</Username>', '<Username >*</Username >'}%

thanks in advance.

2

2 Answers

1
votes

Sounds like a common use case. Could you please create a jira issue to ask for this feature?