diff --git a/readme.md b/readme.md index c3227ed..04ff47c 100644 --- a/readme.md +++ b/readme.md @@ -125,6 +125,7 @@ You can configure the way a log line will be displayed via `SpectreConsoleLogger | `EventIdFormatter` | `delegate` | The formatter for the log event id. | `CategoryFormatter` | `delegate` | The formatter for the log category. +In addition, log [filtering rules](https://learn.microsoft.com/en-us/dotnet/core/extensions/logging?tabs=command-line#how-filtering-rules-are-applied) can be added to appsettings.json using the category "SpectreConsole" ## License This software is released under the [BSD-Clause 2 license](https://opensource.org/licenses/BSD-2-Clause). diff --git a/src/Lunet.Extensions.Logging.SpectreConsole/SpectreConsoleLoggerProvider.cs b/src/Lunet.Extensions.Logging.SpectreConsole/SpectreConsoleLoggerProvider.cs index d40d6db..9294ff0 100644 --- a/src/Lunet.Extensions.Logging.SpectreConsole/SpectreConsoleLoggerProvider.cs +++ b/src/Lunet.Extensions.Logging.SpectreConsole/SpectreConsoleLoggerProvider.cs @@ -11,6 +11,7 @@ namespace Lunet.Extensions.Logging.SpectreConsole; /// /// An for Spectre.Console. /// +[ProviderAlias("SpectreConsole")] public class SpectreConsoleLoggerProvider : ILoggerProvider { private readonly SpectreConsoleLoggerOptions _config;