public static void LogDebug(this ILogger instance, string source, string code, string message, string userName, Func <ILog4NetProperties, Exception, string> formatter = null) { instance.LogDebug(Log4NetProperties.Build(userName, LogLevel.Debug, source, code, message, null, null).ToString()); }
public static void LogCritical(this ILogger instance, Type source, string code, string message, Exception exception, string userName, Func <ILog4NetProperties, Exception, string> formatter = null) { instance.LogCritical(exception, Log4NetProperties.Build(userName, LogLevel.Critical, source, code, message, null, exception).ToString()); }