예제 #1
0
        public void Log(string message, Contracts.LogLevel level)
        {
            switch (level)
            {
            case Contracts.LogLevel.Error:
                Errors.Add(message);
                break;

            case Contracts.LogLevel.Operation:
            case Contracts.LogLevel.Task:
            case Contracts.LogLevel.Status:
                Messages.Add(message);
                break;
            }
        }
예제 #2
0
        public static LogLevel ConvertLevel(Contracts.LogLevel level)
        {
            switch (level)
            {
            case Contracts.LogLevel.Debug:
                return(LogLevel.Debug);

            case Contracts.LogLevel.Info:
                return(LogLevel.Info);

            case Contracts.LogLevel.Warn:
                return(LogLevel.Warn);

            case Contracts.LogLevel.Error:
                return(LogLevel.Error);

            case Contracts.LogLevel.None:
                return(LogLevel.Off);

            default:
                return(LogLevel.Info);
            }
        }
예제 #3
0
 public QuartzLogFactory(Contracts.IContext context, Contracts.LogLevel level)
 {
     _context = context;
     _level   = level;
 }
예제 #4
0
 public QuartzLogger(Contracts.IContext context, Contracts.LogLevel level)
 {
     _context = context;
     _base    = new BaseLogger(level);
 }