public static void Debug(this ILogger log, Func <string> getMessage) { if (!log.IsDebugEnabled) { return; } var logMessage = getMessage(); log.Debug(logMessage); }
public static void Fatal(this ILogger log, Func <string> getMessage) { if (!log.IsFatalEnabled) { return; } var logMessage = getMessage(); log.Fatal(logMessage); }
public static void Warn(this ILogger log, Func <string> getMessage) { if (!log.IsWarnEnabled) { return; } var logMessage = getMessage(); log.Warn(logMessage); }
public static void Error(this ILogger log, Func <string> getMessage) { if (!log.IsErrorEnabled) { return; } var logMessage = getMessage(); log.Error(logMessage); }
public static void Info(this ILogger log, Func <string> getMessage) { if (!log.IsInfoEnabled) { return; } var logMessage = getMessage(); log.Info(logMessage); }