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; } }
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); } }
public QuartzLogFactory(Contracts.IContext context, Contracts.LogLevel level) { _context = context; _level = level; }
public QuartzLogger(Contracts.IContext context, Contracts.LogLevel level) { _context = context; _base = new BaseLogger(level); }