Serilog.Sinks.StatusMonitor
1.0.0
dotnet add package Serilog.Sinks.StatusMonitor --version 1.0.0
NuGet\Install-Package Serilog.Sinks.StatusMonitor -Version 1.0.0
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="Serilog.Sinks.StatusMonitor" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Serilog.Sinks.StatusMonitor" Version="1.0.0" />
<PackageReference Include="Serilog.Sinks.StatusMonitor" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Serilog.Sinks.StatusMonitor --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Serilog.Sinks.StatusMonitor, 1.0.0"
#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.
#:package Serilog.Sinks.StatusMonitor@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Serilog.Sinks.StatusMonitor&version=1.0.0
#tool nuget:?package=Serilog.Sinks.StatusMonitor&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Update log
[26/05/28-V1.0] Inited.
Description
This program will create a window in which the component status can be displayed, create several terminal windows according to the configuration, and output the log information in Serilog to the corresponding terminal window for display according to the filter conditions.
Bugs
1/ Due to rendering issues, the terminal blocks interface elements.
How to use
1/ Create ConfigureModel
ConfigureModel configureModel = new ConfigureModel();
configureModel.WindowTitle = "Test Project Window";
//create split terminal
configureModel.TerminalConfigs = new List<ConfigureModel.TerminalConfig> {
//terminal 1, only show the log with SourceContextName start with "ctx1"
new ConfigureModel.TerminalConfig(FilterTypeEnum.Include,TerminalConfigHelper.FilterExpressionKeyWordMatch(TerminalConfigHelper.FilterKetWordEnum.SourceContextName, "ctx1"),"terminal1"){ Theme= TerminalThemeHelper.Theme.UbuntuColorScheme},
//terminal 2, only show the log with SourceContext start with "bbb.ctx2"
new ConfigureModel.TerminalConfig(FilterTypeEnum.Include,"StartsWith(SourceContext, 'bbb.ctx2')","terminal2"),
};
2/ Create Logger
Log.Logger = new LoggerConfiguration()
.WriteTo.WriteToStatusMonitorSinkConfigure(configureModel)
.WriteTo.Console(outputTemplate: "[{Timestamp:HH:mm:ss} {Level:u3}] [{SourceContext}] {Message}{NewLine}")
.CreateLogger();
3/ Write log
Log.Information("This is a test log message with context {SourceContext}", "aaa.ctx1");
Log.Warning("This is a warning log message with context {SourceContext}", "bbb.ctx2");
Log.Information(StatusMonitorHelper.Tamplate, "name1", "ok");
Log.Information(StatusMonitorHelper.Tamplate, "name2", isSuccess);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0-windows7.0
- CommunityToolkit.Mvvm (>= 8.4.2)
- Serilog (>= 4.3.1)
- Serilog.Expressions (>= 5.0.0)
- WXUJS.Terminal (>= 1.0.0)
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.0 | 150 | 5/28/2026 |