fix serilog error

This commit is contained in:
Tarun Jain 2022-11-29 02:56:34 +05:30
parent 9b3e00d756
commit c10fff488c

View File

@ -63,7 +63,7 @@ Serilog.ILogger CreateSerilogLogger(IConfiguration configuration)
.Enrich.FromLogContext()
.WriteTo.Console()
.WriteTo.Seq(string.IsNullOrWhiteSpace(seqServerUrl) ? "http://seq" : seqServerUrl)
.WriteTo.Http(string.IsNullOrWhiteSpace(logstashUrl) ? "http://localhost:8080" : logstashUrl)
.WriteTo.Http(string.IsNullOrWhiteSpace(logstashUrl) ? "http://localhost:8080" : logstashUrl,null)
.ReadFrom.Configuration(configuration)
.CreateLogger();
}