Details
-
Bug
-
Resolution: Fixed
-
Minor
-
3.2.2
-
1
Description
https://forums.couchbase.com/t/executioncontext-should-be-suppressed-loggerfactory-injection/31741
Currently, if:
services.AddCouchbase(options => {
|
// Set other settings |
options.WithLogging(new NullLoggerFactory()); |
});
|
The WithLogging setting is ignored. This is because we override with the ILoggerFactory found in the DI container after the callback action is invoked to configure the options.
Instead, we should be able to register an IConfigureOptions<ClusterOptions> in advance to register the logger. This way it is configured first and may be overridden.