AnderssonPeter / Hangfire.Console.Extensions

Makes it easier to use Hangfire.Console with .net core dependency injection
MIT License
76 stars 14 forks source link

Enable the use of Serilog LevelSwitches and restrictedToMinimumLevel #5

Closed DavidLievrouw closed 2 years ago

DavidLievrouw commented 3 years ago

Most Serilog sinks allow you to specify an arg "restrictedToMinimumLevel", and, alternatively, allow you to specify a "LevelSwitch". These settings configure the minimum level that a log event must have. If it has a lower level, the log event is not emitted to the sink.

This pull request adds that ability to the HangfireSink.

RayWangQvQ commented 3 years ago

Very useful, hope to merge soon~

sommmen commented 2 years ago

Any updates on this @AnderssonPeter ?

AnderssonPeter commented 2 years ago

Sorry for the huge delay, but a new package is on its way with this feature!