A sink for pushing Serilog structured log events into a Honeycomb instance.


Keywords
Honeycomb, Serilog, Sink, Observability, Logging, Monitoring, serilog-sink
License
Other
Install
Install-Package Honeycomb.Serilog.Sink -Version 1.2.1

Documentation

Honeycomb Serilog sink

Build Status Nuget Azure DevOps coverage

[BuildHistory]

This project aims to provide a Serilog sink to push structured log events to the Honeycomb platform for observability and monitoring purposes.

By hooking up to serilog my objective is to allow all existing applications which already produce structured events for logging to easily include Honeycomb as part of their pipeline.

Setup

To start using this sink simply download the package from Nuget and add it to your Serilog configuration as another sink in the pipeline.

Download the package

> dotnet add package Honeycomb.Serilog.Sink
using Honeycomb.Serilog.Sink;

[...]

string teamId = "The Id of your team as defined in Honeycomb";
string apiKey = "The api key given to you in Honeycomb";

var logger = new LoggerConfiguration()
                    .WriteTo
                    [...]
                    .HoneycombSink(teamId, apiKey)
                    [...]
                    .CreateLogger();