dotnet add package Serilog.Sinks.ServiceBus --version 1.0.4
var log = new LoggerConfiguration()
.WriteTo.ServiceBus("<connectionString>","<queueName>")
.CreateLogger();
var log = new LoggerConfiguration()
.WriteTo.ServiceBus("<serviceBusNameSpace>","<queueName>", new DefaultAzureCredential())
.CreateLogger();
Added support to ignore specific log events. Passing a defined property in the log context allows you to not send it to service bus. Can be useful if you only want specific events to make it to the bus without changing log level.