You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, the Serilog Logger configuration is hard-coded in the code.
Wouldn't it be an idea to have the logger configuration part of the configuration, and retrieve the settings from the configuration ?
This discussion was converted from issue #367 on April 28, 2021 12:00.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Right now, the Serilog Logger configuration is hard-coded in the code.
Wouldn't it be an idea to have the logger configuration part of the configuration, and retrieve the settings from the configuration ?
This can be done like this:
and then, in your configuration you can have for instance these environment variables:
Or, you can have this in your
appsettings.json
More information can be found here
Beta Was this translation helpful? Give feedback.
All reactions