Skip to content

Latest commit

 

History

History

Serilog

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Serilog

.NET applications using Serilog.Sinks.LogBee to send the Serilog events to Logbee.

Serilog.Sinks.LogBee Serilog.Sinks.LogBee.AspNetCore

Downloads

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();
}