I have a "Duplicate entry" exception, which logging SqlExceptionHelper
. I need to disable logging only this exception. How can I do it?
Disable logging for one exception
9.6k Views Asked by Squeez At
3
I have a "Duplicate entry" exception, which logging SqlExceptionHelper
. I need to disable logging only this exception. How can I do it?
I am assuming you are using Log4j for your logging. You may want to explore
ExpressionFilter
.I am appending a sample configuration, you can take it from there, hopefully.