public static void make_(LogRec self, DateTime time, LogLevel level, string logName, string msg, Err err) { self.m_time = time; self.m_level = level; self.m_logName = logName; self.m_msg = msg; self.m_err = err; }
public static void make_(LogRec self, DateTime time, LogLevel level, string logName, string msg) { make_(self, time, level, logName, msg, null); }
public static LogRec make(DateTime time, LogLevel level, string logName, string msg, Err err) { LogRec self = new LogRec(); make_(self, time, level, logName, msg, err); return self; }
////////////////////////////////////////////////////////////////////////// // Construction ////////////////////////////////////////////////////////////////////////// public static LogRec make(DateTime time, LogLevel level, string logName, string msg) { return make(time, level, logName, msg, null); }
public void level(LogLevel level) { if (level == null) throw ArgErr.make("level cannot be null").val; this.m_level = level; }
public bool isEnabled(LogLevel level) { return enabled(level); }
public bool enabled(LogLevel level) { return this.m_level.m_ord <= level.m_ord; }