datalust / seq-extensions-logging

Add centralized log collection to ASP.NET Core apps with one line of code.
https://datalust.co/seq
Apache License 2.0
84 stars 12 forks source link

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

Open softlion opened 1 month ago

softlion commented 1 month ago

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 !