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
Is your feature request related to a problem? Please describe.
Comming to Serilog and .Net Core I had to spend hours of trying to find out the simplest way of Setting up Serilog and having it read it's configuration from the settings file is:
This setup should be shown FIRST in the installation instructions. Together with the simplest configuration which writes to a log file and the console.
Also .UseSerilog() should use the settings file for configuration by default.
Additional context
I've seen multiple tutorials and guides setting up Serilog as described in the instrustions when all they had to do was call .UseSerilog as described above. You only really find it in the documentation by luck or if you already know how to do it.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Comming to Serilog and .Net Core I had to spend hours of trying to find out the simplest way of Setting up Serilog and having it read it's configuration from the settings file is:
.UseSerilog((hostingContext, services, loggerConfiguration) => loggerConfiguration .ReadFrom.Configuration(hostingContext.Configuration))
Describe the solution you'd like
This setup should be shown FIRST in the installation instructions. Together with the simplest configuration which writes to a log file and the console.
Also
.UseSerilog()
should use the settings file for configuration by default.Additional context
I've seen multiple tutorials and guides setting up Serilog as described in the instrustions when all they had to do was call
.UseSerilog
as described above. You only really find it in the documentation by luck or if you already know how to do it.The text was updated successfully, but these errors were encountered: