You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our production environment we have rather strict requirements as to what's logged on ERROR-level. Because of this we need to implement a custom ReactiveLoggerListener, which is fine, but we also need to disable the logger-level for DefaultReactiveLogger since it will always be enabled when we build our client with something like:
and applies because the CoreWebBuilder extends ReactiveFeign.Builder which registers the logger in its constructor.
This is inconvenient to us specifically because we use ReactiveFeign in an internal library that helps with constructing the ReactiveFeign-client, the http-client and related configuration for simpler consumption in our services, but the current solution requires us to also configure specific log-suppression in the various services. It would be more convenient to allow for opting out from DefaultReactiveLogger entirely, either by builder-methods like useDefaultLoggerListener()/disableDefaultLoggerListener() or clearLoggerListeners() followed by the currently available addLoggerListener().
An alternate, perhaps clearer change would be to add a constructor argument for the desired ReactiveLoggerListener(s), requiring consumers to specify logger. It would break existing code, but in an easy-to-fix manner.
I would be willing to provide a pull-request, if this is at all interesting, but I would appreciate some guidance as to which approach to prefer.
The text was updated successfully, but these errors were encountered:
An alternate, perhaps clearer change would be to add a constructor argument for the desired ReactiveLoggerListener(s), requiring consumers to specify logger. It would break existing code, but in an easy-to-fix manner.
The same for me.
DefaultReactiveLogger always logs ERROR even if a request is retried successfully. While each ERROR is an alert for devops team.
Agree with suggestion that DefaultReactiveLogger should be disabled by default.
In our production environment we have rather strict requirements as to what's logged on
ERROR
-level. Because of this we need to implement a customReactiveLoggerListener
, which is fine, but we also need to disable the logger-level forDefaultReactiveLogger
since it will always be enabled when we build our client with something like:The DefaultReactiveLogger is registered here:
feign-reactive/feign-reactor-core/src/main/java/reactivefeign/ReactiveFeign.java
Line 170 in baba570
and applies because the
CoreWebBuilder
extendsReactiveFeign.Builder
which registers the logger in its constructor.This is inconvenient to us specifically because we use ReactiveFeign in an internal library that helps with constructing the ReactiveFeign-client, the http-client and related configuration for simpler consumption in our services, but the current solution requires us to also configure specific log-suppression in the various services. It would be more convenient to allow for opting out from DefaultReactiveLogger entirely, either by builder-methods like
useDefaultLoggerListener()/disableDefaultLoggerListener()
orclearLoggerListeners()
followed by the currently availableaddLoggerListener()
.An alternate, perhaps clearer change would be to add a constructor argument for the desired ReactiveLoggerListener(s), requiring consumers to specify logger. It would break existing code, but in an easy-to-fix manner.
I would be willing to provide a pull-request, if this is at all interesting, but I would appreciate some guidance as to which approach to prefer.
The text was updated successfully, but these errors were encountered: