Skip to content

Commit a80e6cf

Browse files
author
Paul Schaeflein
committed
Add logging provider alias
1 parent 2cc3d08 commit a80e6cf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ You can configure the way a log line will be displayed via `SpectreConsoleLogger
125125
| `EventIdFormatter` | `delegate` | The formatter for the log event id.
126126
| `CategoryFormatter` | `delegate` | The formatter for the log category.
127127

128+
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"
128129
## License
129130

130131
This software is released under the [BSD-Clause 2 license](https://opensource.org/licenses/BSD-2-Clause).

src/Lunet.Extensions.Logging.SpectreConsole/SpectreConsoleLoggerProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ namespace Lunet.Extensions.Logging.SpectreConsole;
1111
/// <summary>
1212
/// An <see cref="ILoggerProvider"/> for Spectre.Console.
1313
/// </summary>
14+
[ProviderAlias("SpectreConsole")]
1415
public class SpectreConsoleLoggerProvider : ILoggerProvider
1516
{
1617
private readonly SpectreConsoleLoggerOptions _config;

0 commit comments

Comments
 (0)