Skip to content

Commit 279a8f4

Browse files
committed
Update SerilogLogger.cs
Fixed #34
1 parent 9ef0dea commit 279a8f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Ninject.Extensions.Logging.Serilog/Infrastructure/SerilogLogger.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ public override void InfoException(string message, Exception exception)
338338
{
339339
if (this.IsInfoEnabled)
340340
{
341-
this.serilogLogger.Fatal(exception, message);
341+
this.serilogLogger.Information(exception, message);
342342
}
343343
}
344344

@@ -415,7 +415,7 @@ public override void Warn(string format, params object[] args)
415415
{
416416
if (this.IsWarnEnabled)
417417
{
418-
this.serilogLogger.Fatal(format, args);
418+
this.serilogLogger.Warning(format, args);
419419
}
420420
}
421421

@@ -429,8 +429,8 @@ public override void Warn(Exception exception, string format, params object[] ar
429429
{
430430
if (this.IsWarnEnabled)
431431
{
432-
this.serilogLogger.Fatal(exception, format, args);
432+
this.serilogLogger.Warning(exception, format, args);
433433
}
434434
}
435435
}
436-
}
436+
}

0 commit comments

Comments
 (0)