Serilog.Sinks.LogtailSysBlazor
0.0.9
dotnet add package Serilog.Sinks.LogtailSysBlazor --version 0.0.9
NuGet\Install-Package Serilog.Sinks.LogtailSysBlazor -Version 0.0.9
<PackageReference Include="Serilog.Sinks.LogtailSysBlazor" Version="0.0.9" />
paket add Serilog.Sinks.LogtailSysBlazor --version 0.0.9
#r "nuget: Serilog.Sinks.LogtailSysBlazor, 0.0.9"
// Install Serilog.Sinks.LogtailSysBlazor as a Cake Addin #addin nuget:?package=Serilog.Sinks.LogtailSysBlazor&version=0.0.9 // Install Serilog.Sinks.LogtailSysBlazor as a Cake Tool #tool nuget:?package=Serilog.Sinks.LogtailSysBlazor&version=0.0.9
A Serilog sink that logs events to logtail.
Getting started
This project is a fork of : https://github.com/Nickztar/Serilog.Sinks.LogtailSys
Install the Serilog.Sinks.LogtailSysBlazor package from NuGet:
Using Package Manager In Visual Studio, open NuGet Package Manager Console by clicking Tools → NuGet Package Manager → Package Manager Console
In the console run the following command:
Install-Package Serilog.Sinks.LogtailSysBlazor
Optionally using Dotnet CLI
dotnet add package Serilog.Sinks.LogtailSysBlazor
To start logging you need to setup a rsyslog source in Logtail, please use their documentation for this. Logtail - Getting started
To configure the sink to write messages to logtail, call WriteTo.Logtail()
with your logtail token during logger configuration:
var log = new LoggerConfiguration()
.WriteTo.Logtail(token: "$SOURCE_TOKEN")
.CreateLogger();
A number of optional parameters are available for more advanced configurations, see doc tags for more information.
NOTE: Project is in no way associated with Logtail or Serilog
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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 was computed. 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. |
-
net7.0
- Newtonsoft.Json (>= 13.0.3)
- Serilog (>= 2.12.0)
- Serilog.Sinks.PeriodicBatching (>= 3.1.0)
- System.Text.Json (>= 7.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
- v0.0.7 Update the format of the outputed json
- v0.0.8 Add ability to change the ingestion endpoint
- v0.0.9 Capture enrichements and put them in a field called properties in the json, get the proper os platform, token and appname parameters are now mandatory