-
Notifications
You must be signed in to change notification settings - Fork 41.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logback Filter not working. #45022
Comments
Does it work if you use |
@mhalbritter use
|
I can't imagine this setup to be working on Logback without Spring Boot either. Your problem is that loggers are additive: https://logback.qos.ch/manual/configuration.html#cumulative
Your filter is working, it's just that the Do it like this and it works: <logger name="com.sage.local.Demo7ApplicationKt" level="info" additivity="false">
<appender-ref ref="Jpa"/>
</logger> |
demo: https://github.com/SageJustus/question/tree/main/demo7
dependency
JpaFilter
logback.xml
Start the springboot project. output:
The returned
FilterReply.DENY
value has no effect.When I use
logback
alone, the filter works wellThe text was updated successfully, but these errors were encountered: