예제 #1
0
 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;
     }
 }
예제 #2
0
        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;
            }
        }
예제 #3
0
        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;
            }
        }
예제 #4
0
        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;
            }
        }
예제 #5
0
        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;
            }
        }