-
Notifications
You must be signed in to change notification settings - Fork 260
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
Disable LogbookExchangeFilterFunction logging based on logbook property #1866
Comments
I've recently integrated LogBook into our Spring Boot project. My goal was to enable logging specifically for WebFlux without affecting all Spring Boot requests and responses. Here's what I did:
Observations:
In summary, just adding the LogBook WebFlux dependency was enough to get logging working for WebClient without needing additional configurations however Thanks @aldex32 for opening the feature, |
I would like to have a logbook property where I can both disable servlet filters but also
LogbookExchangeFilterFunction
. Seems likelogbook.filter.enabled
property is only intended for servlet filter support as far as I can see inLogbookAutoConfiguration
. Can this property also be used for http client logging?Detailed Description
I am using
[email protected]
together with[email protected]
. And when I setlogbook.filter.enabled=false
, only the servlet logging gets disabled, but theWebClient
logging still occurs. I am not sure if this is as by design or is a bug.Context
This is important because users of this library can use a single property to enable/disable request/response logging. And since
LogbookExchangeFilterFunction
requires alogbook
bean which is autoconfigured based on properties, why not leveraging the property to disable/enable the logging.Your Environment
The text was updated successfully, but these errors were encountered: