Trying to get trace level logging from Couchbase SDK to debug an issue with .Net Core Web API. Passed the loggerfactory in the ClusterOptions and my appsettings.json has “Trace” enabled but the SDK only logs info logs SDK but not Trace/Debug logs.
It’s also possible for individual logging destinations to have a log threshold set, which can filter their output. Can you show your entire logging configuration, including the configuration for things like the Console logger (or whatever logger you’re using)?
I’ve replicated that basic configuration on my machine, and it is logging trace/debug logs for the Couchbase SDK. There must be some subtle difference we’re missing.
First, I would recommend using the Couchbase.Extenstions.DependencyInjection package for registering Couchbase with DI, rather than manually building it with ConnectAsync. This does several things, including wiring the SDK up to logging automatically.