seq-extensions-logging icon indicating copy to clipboard operation
seq-extensions-logging copied to clipboard

add a feature to disable seq sink logging at runtime after AddSeq has been called

Open softlion opened this issue 1 year ago • 1 comments

Abstract: the maui app I'm working on uses a settings file loaded at runtime which should be able to switch on seq logging only for specific users.

But currently AddSeq creates everything internally, including the SerilogLoggerProvider and its ControlledLevelSwitch that could make that feature work.

Could you improve that ? Ty !

softlion avatar Jun 03 '24 07:06 softlion

Hi @softlion; unfortunately there's no simple/clean way to pivot the design in that direction right now; you might have some luck creating your own provider type that delegates to a Seq.Extensions.Logging provider internally. Hope this helps!

nblumhardt avatar Sep 11 '24 05:09 nblumhardt