Install Instructions

A full working example can be found here.

  1. Install NuGet Package

Package Manager Console
PM> Install-Package Serilog.Sinks.LogBee
  1. Update Program.cs

    Set the LogBeeApiKey with the values from the application configuration page.

using Serilog.Sinks.LogBee;

namespace Serilog.Sinks.LogBee_ConsoleApp;

class Program
    static void Main(string[] args)
        Log.Logger =
            new LoggerConfiguration()
                    new LogBeeApiKey("_OrganizationId_", "_ApplicationId_", "")

            string name = "Serilog";
            Log.Information("Hello, {Name}!", name);

            throw new NullReferenceException("Oops...");
        catch (Exception ex)
            Log.Error(ex, "Unhandled exception");
            // flush the logger so the events are sent to the logBee endpoint

For technical support, questions or any feedback, please feel free to send us a message and we will get back to you.