Skip to content

KryptoBeard/serilog-sinks-servicebus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

serilog-sinks-servicebus

alt text

dotnet add package Serilog.Sinks.ServiceBus --version 1.0.4

With Connection string

var log = new LoggerConfiguration()
    .WriteTo.ServiceBus("<connectionString>","<queueName>")
    .CreateLogger();

With Identity

var log = new LoggerConfiguration()
    .WriteTo.ServiceBus("<serviceBusNameSpace>","<queueName>", new DefaultAzureCredential())
    .CreateLogger();

pushOnlyWithProperty

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages