예제 #1
0
 internal static LoggerConfiguration ConfigureLogger(
     this LoggerConfiguration logConfiguration,
     IConfiguration configuration,
     IWebHostEnvironment environment,
     TelemetryConfiguration telemetry)
 => logConfiguration
 .CreateStartupLogger()
 .Enrich.WithProperty("Application", environment.ApplicationName)
 .Enrich.WithProperty("Environment", environment.EnvironmentName)
 .Enrich.With <OperationIdEnricher>()
 .WriteTo.Logger(log => log