Closed
Description
Software versions
MySqlConnector.Logging.Microsoft.Extensions.Logging version: 2.0.0
Describe the bug
The mentioned package is not prefixing the log categories.
So I see categories like "ConnectionPool" instead of "MySqlConnector.ConnectionPool".
Because of this, collisions are possible and I cannot filter all the MySqlConnector logs with single filter, need to know each possible category.
Here is the missing prefix:
The other logging packages DO prefix:
Exception
Not applicable.
Code sample
LoggerFactory = Microsoft.Extensions.Logging.LoggerFactory.Create(cfg =>
cfg.AddConsole()
.SetMinimumLevel(LogLevel.Debug)
.AddFilter("ConnectionPool", LogLevel.Information) //How can I filter all MySqlConnector logs? How I can know all posible categories?
);
MySqlConnectorLogManager.Provider = new MicrosoftExtensionsLoggingLoggerProvider(LoggerFactory);
Expected behavior
I expect a prefix "MySqlConnector." just like on the other loggers.
Additional context
None