public static void Info(this ILog logger, ChocolateyLoggers logType, Func<string> message) { switch (logType) { case ChocolateyLoggers.Normal: logger.Info(message); break; default: logType.to_string().Log().Info(message); break; } }
public static void Info(this ILog logger, ChocolateyLoggers logType, Func <string> message) { switch (logType) { case ChocolateyLoggers.Normal: logger.Info(message); break; default: logType.to_string().Log().Info(message); break; } }
public static void Warn(this ILog logger, ChocolateyLoggers logType, string message, params object[] formatting) { switch (logType) { case ChocolateyLoggers.Normal: logger.Warn(message, formatting); break; default: logType.to_string().Log().Warn(message, formatting); break; } }
public static void Debug(this ILog logger, ChocolateyLoggers logType, Func <string> message) { switch (logType) { case ChocolateyLoggers.Normal: logger.Debug(message); break; case ChocolateyLoggers.Trace: Trace(logger, message); break; default: logType.to_string().Log().Debug(message); break; } }