.NET using a Serilog LogSense-dedicated plugin

Step 1: Download the plugin and add it as a dependency

Download Serilog.Sinks.LogSense.Core from the GitHub repository and include it as a dpendency in your project

Step 2: Instantiate the logger instance

var log = new LoggerConfiguration()
    .WriteTo.Fluentd(new FluentdHandlerSettings
        Tag = "Some.App.Name",
        customer_token = "CUSTOMER TOKEN"
`CUSTOMER_TOKEN` needs to be replaced with the value available in *Customer Tokens* section of the user portal.

Step 3: Use the logger


var info = new LogMessage
    Message = "Some event I am testing",
    CustomKey = "Any sort of custom value",
    CustomList = new[] { 1, 2, 3 },

log.Information("{@info}", info)

A complete example is available in the sample folder of the plugin repository.