Replies: 3 comments
-
Duplicate of #58 Right now, there is no way to do this and it's not clear how we could easily add support for it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@RehanSaeed Darn. Thanks for the reply. I actually don't like the json way; it reeks of magic strings. But I don't know of another way to have log level configurable rather than hardcoded. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've used the JSON config as a switch before: "IsFooEnabled": true Then in code you can read that value and enable/disable some Serilog feature. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How would this EFCore necessity be written in json, a la Serilog.Settings.Configuration
Beta Was this translation helpful? Give feedback.
All reactions