Foxtrek_64
Explore posts from serversCustom Logger
I was able to figure it out.
My SqlServer library was named Microsoft.Extensions.Logging.SqlServer and the tests library adds the .Tests node to the namespace.
It was correctly pulling in appsettings data that told it that
So naturally an information message was being excluded.
I created a new type with a new namespace in my test library to simulate a consumer and now everything is happy
14 replies
Custom Logger
I do see a lot of calls to my logger provider's
CreateLogger()
function
_loggers
is a concurrent dictionary (made it that in case of this being issues with async, but it can probaby be a regular dictionary) of string, MSSqlDatabaseLogger.
The current options are provided by IOptionsMonitor<>
And the scope provider is an IExternalScopeProvider
instance, which defaults to a no-op scope shamelessly copied from the M.E.L.Console no-scope provider.14 replies