seq-extensions-logging
seq-extensions-logging copied to clipboard
add a feature to disable seq sink logging at runtime after AddSeq has been called
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 !
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!