.NET applications using Serilog.Sinks.LogBee to send the Serilog events to Logbee.
using Serilog;
using Serilog.Sinks.LogBee;
Log.Logger = new LoggerConfiguration()
.WriteTo.LogBee(new LogBeeApiKey("_OrganizationId_", "_ApplicationId_", "https://api.logbee.net"))
.CreateLogger();
try
{
Log.Information("Hello from {Name}!", "Serilog");
}
catch(Exception ex)
{
Log.Error(ex, "Unhandled exception");
}
finally
{
Log.CloseAndFlush();
}