Align fatal exception with message

This commit is contained in:
Nikolaj
2020-09-14 11:49:47 +02:00
parent b8c60d1666
commit db4652c0be
16 changed files with 28 additions and 64 deletions

View File

@@ -80,13 +80,6 @@ namespace Umbraco.Core.Logging.Serilog
public bool IsEnabled(Type reporting, LogLevel level)
=> LoggerFor(reporting).IsEnabled(MapLevel(level));
/// <inheritdoc/>
public void Fatal(Type reporting, Exception exception, string message)
{
var logger = LoggerFor(reporting);
logger.Fatal(exception, message);
}
/// <inheritdoc/>
public void Fatal(Type reporting, Exception exception)
{
@@ -102,9 +95,9 @@ namespace Umbraco.Core.Logging.Serilog
}
/// <inheritdoc/>
public void Fatal(Type reporting, Exception exception, string messageTemplate, params object[] propertyValues)
public void LogCritical(Exception exception, string messageTemplate, params object[] propertyValues)
{
var logger = LoggerFor(reporting);
var logger = LoggerFor(typeof(T));
logger.Fatal(exception, messageTemplate, propertyValues);
}