Vectron.Extensions.Logging.Theming.Console
1.0.24
dotnet add package Vectron.Extensions.Logging.Theming.Console --version 1.0.24
NuGet\Install-Package Vectron.Extensions.Logging.Theming.Console -Version 1.0.24
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Vectron.Extensions.Logging.Theming.Console" Version="1.0.24" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Vectron.Extensions.Logging.Theming.Console --version 1.0.24
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Vectron.Extensions.Logging.Theming.Console, 1.0.24"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Vectron.Extensions.Logging.Theming.Console as a Cake Addin #addin nuget:?package=Vectron.Extensions.Logging.Theming.Console&version=1.0.24 // Install Vectron.Extensions.Logging.Theming.Console as a Cake Tool #tool nuget:?package=Vectron.Extensions.Logging.Theming.Console&version=1.0.24
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Vectron.Extensions.Logging.Theming
Vectron.Extensions.Logging.Theming provides a single line log formatter (based on the SimpleConsoleFormatter in Microsoft.Extensions.Logging.Console that can use Themes to change colors.
Changes with default simple formatter
- The message will be single line, but preserves new lines in the message.
- The Level text is changed to capitals and full word
trce → TRACE
dbug → DEBUG
info → INFO
warn → WARN
fail → FAIL
crit → CRIT - implemented themes for coloring.
Change theme by changing the FormatterOptions.Theme options.
Buildin themes:
Option | Description |
---|---|
MEL | Use the colors like 'Microsoft.Extensions.Logging.Console' |
MEL-Dark | Use the colors like 'Microsoft.Extensions.Logging.Console', but for a dark background |
NLog | Use the colors like 'NLog' |
NLog-Dark | Use the colors like 'NLog', but for a dark background |
Serilog | Use the colors like 'Serilog' |
Serilog-Dark | Use the colors like 'Serilog', but for a dark background |
None | Don't colorize the output |
Output examples:
Microsoft.Extensions.Logging level only
Microsoft.Extensions.Logging Full line
NLog level only
NLog Full line
Serilog level only
Serilog Full line
Authors
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Microsoft.Extensions.Logging.Console (>= 8.0.0)
- Vectron.Extensions.Logging.Theming (>= 1.0.24)
-
net7.0
- Microsoft.Extensions.Logging.Console (>= 8.0.0)
- Vectron.Extensions.Logging.Theming (>= 1.0.24)
-
net8.0
- Microsoft.Extensions.Logging.Console (>= 8.0.0)
- Vectron.Extensions.Logging.Theming (>= 1.0.24)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.24 | 420 | 3/11/2024 |