This is how my logging in Asp.Net is configured: _ = pServiceCollection.AddSerilog((serviceProvider, loggerConfiguration) => loggerConfiguration.ReadFrom.Configuration(pConfiguration) .ReadFrom.Services(serviceProvider) .Enrich.FromLogContext() .WriteTo.Console(outputTemplate: LogMessageTemplate, formatProvider: CultureInfo.InvariantCulture) .WriteTo.File(path: logFilePath, outputTemplate: LogMessageTemplate, rollingInterval: RollingInterval.Day, retainedFileCountLimit: 30, formatProvider: CultureInfo.InvariantCulture) .WriteTo.EventLog(source: CommonConstants.ProductName, manageEventSource: true, restrictedToMinimumLevel: LogEventLevel.Warning, formatProvider: CultureInfo.InvariantCulture)); Only…