fixed code to allow compile (#23)
This commit is contained in:
parent
c0251e2485
commit
4b6ba97a87
@ -80,7 +80,7 @@ static ILogger GetLogger(IConfiguration configuration)
|
|||||||
{
|
{
|
||||||
var otel = configuration.GetValue<string>(ConfigConnectionStringConst.OpenTelemetry) ?? "";
|
var otel = configuration.GetValue<string>(ConfigConnectionStringConst.OpenTelemetry) ?? "";
|
||||||
|
|
||||||
if (otel == "")s
|
if (otel == "")
|
||||||
return Log.Logger = new LoggerConfiguration()
|
return Log.Logger = new LoggerConfiguration()
|
||||||
.WriteTo.Console()
|
.WriteTo.Console()
|
||||||
.MinimumLevel.Information()
|
.MinimumLevel.Information()
|
||||||
@ -88,7 +88,6 @@ static ILogger GetLogger(IConfiguration configuration)
|
|||||||
|
|
||||||
return Log.Logger = new LoggerConfiguration()
|
return Log.Logger = new LoggerConfiguration()
|
||||||
.WriteTo.Console()
|
.WriteTo.Console()
|
||||||
|
|
||||||
.MinimumLevel.Information()
|
.MinimumLevel.Information()
|
||||||
.WriteTo.OpenTelemetry(
|
.WriteTo.OpenTelemetry(
|
||||||
otel,
|
otel,
|
||||||
|
Loading…
Reference in New Issue
Block a user