Skip to content

Nickztar/Serilog.Sinks.LogtailSys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c2e9327 · Dec 13, 2024

History

12 Commits
Dec 13, 2024
Dec 13, 2024
Dec 13, 2024
Dec 13, 2024
Oct 30, 2023
Apr 18, 2023
Apr 18, 2023
Jun 28, 2024

Repository files navigation

NuGet

A Serilog sink that logs events to logtail.

Getting started

Install the Serilog.Sinks.LogtailSys package from NuGet:

Using Package Manager In Visual Studio, open NuGet Package Manager Console by clicking ToolsNuGet Package ManagerPackage Manager Console

In the console run the following command:

Install-Package Serilog.Sinks.LogtailSys

Optionally using Dotnet CLI

dotnet add package Serilog.Sinks.LogtailSys

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.

About

A Serilog sink that logs events to logtail.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages