Writes Serilog events to a Microsoft.Extensions.Logging.ILogger
.
Install the Serilog.Sinks.ILogger package from NuGet:
Install-Package Serilog.Sinks.ILogger
To configure the sink in C# code, call WriteTo.ILogger()
during logger configuration:
var log = new LoggerConfiguration() .WriteTo.ILogger(logger) .CreateLogger();
logger The ILogger
.
outputTemplate A message template describing the output messages. See https://github.com/serilog/serilog/wiki/Formatting-Output.
restrictedToMinimumLevel The minimum level for events passed through the sink.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4