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
{{ message }}
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.
Our application already had Serilog with sinks to file, console, and SEQ via a JSON appsettings setup. From Program.cs:
public static void Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
.ReadFrom.Configuration(Configuration)
.Enrich.WithBuildInformation(Configuration.GetSection("Build").Get<...customconfigurationobject...>())
.CreateLogger();
// other code below that calls Startup.cs
}
After adding in Espagon (inside the Startup.cs file), it overwrites the logger object and removes all of our settings. Is it possible to have Espagon logging AND other Serilog loggers or is Espagon meant to be the one and only logger available once it is instantiated with the bootstrap?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Our application already had Serilog with sinks to file, console, and SEQ via a JSON appsettings setup. From Program.cs:
After adding in Espagon (inside the Startup.cs file), it overwrites the logger object and removes all of our settings. Is it possible to have Espagon logging AND other Serilog loggers or is Espagon meant to be the one and only logger available once it is instantiated with the bootstrap?
The text was updated successfully, but these errors were encountered: