-
Hi, I have a stack trace where correct (as per my opinion) exclude patterns does not work. Patterns:
Stack trace:
So logback keeps frames even provided patterns are matched in a regexp verification software. so I know there is a match. Please bring some light on this problem, if you could. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Exclude patterns are REGEX expressions for which the dollar sign and the dot have special meanings (respectively end of line and any single character).
That said, the converter effectively removes stack trace elements ONLY if at least TWO consecutive lines are excluded. This is so to avoid replacing the single element with "... 1 frames excluded" which doesn't shorten the stack trace at all... I know the documentation is not very clear about this behaviour. Sorry about that. We'll do our best to review it asap. |
Beta Was this translation helpful? Give feedback.
Exclude patterns are REGEX expressions for which the dollar sign and the dot have special meanings (respectively end of line and any single character).
In your case you want to match the dollar and the dot literals so you need to ESCAPE them as follows:
That said, the converter effectively removes stack trace elements ONLY i…