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
I have SeriLog working in my .NET Core web app. I've configured it in my Startup class like this:
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.WriteTo.RollingFile("C:/LogFiles/log-{Date}.txt")
.CreateLogger();
I'd like to pull out configuration properties like the min log level and rolling file path to a file. In .NET Core, it would seem either the appsettings.json file or web.config file would be appropriate. In my project, I have these environment-specific versions for these files.
How can I move configuration properties to a config file in .NET Core?
The text was updated successfully, but these errors were encountered:
I have SeriLog working in my .NET Core web app. I've configured it in my Startup class like this:
I'd like to pull out configuration properties like the min log level and rolling file path to a file. In .NET Core, it would seem either the appsettings.json file or web.config file would be appropriate. In my project, I have these environment-specific versions for these files.
How can I move configuration properties to a config file in .NET Core?
The text was updated successfully, but these errors were encountered: