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.
My appsettings.json says:
{
“Logging”: {
“LogLevel”: {
“Default”: “Trace”,
“Microsoft”: “Trace”,
“Microsoft.Hosting.Lifetime”: “Trace”
}
},
“AllowedHosts”: “*”
}
My Cluster options:
await Cluster.ConnectAsync(new ClusterOptions
{
Logging = loggerFactory
}
.WithConnectionString(serverList)
.WithCredentials(CouchbaseUsername, CouchBasePassword));