LogLevel provides a set of discrete levels used to customize logging.
Inheritance: Enum
示例#1
0
文件: LogRec.cs 项目: nomit007/f4
 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;
 }
示例#2
0
文件: LogRec.cs 项目: nomit007/f4
 public static void make_(LogRec self, DateTime time, LogLevel level, string logName, string msg)
 {
     make_(self, time, level, logName, msg, null);
 }
示例#3
0
文件: LogRec.cs 项目: nomit007/f4
 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;
 }
示例#4
0
文件: LogRec.cs 项目: nomit007/f4
 //////////////////////////////////////////////////////////////////////////
 // Construction
 //////////////////////////////////////////////////////////////////////////
 public static LogRec make(DateTime time, LogLevel level, string logName, string msg)
 {
     return make(time, level, logName, msg, null);
 }
示例#5
0
文件: Log.cs 项目: nomit007/f4
 public void level(LogLevel level)
 {
     if (level == null) throw ArgErr.make("level cannot be null").val;
       this.m_level = level;
 }
示例#6
0
文件: Log.cs 项目: nomit007/f4
 public bool isEnabled(LogLevel level)
 {
     return enabled(level);
 }
示例#7
0
文件: Log.cs 项目: nomit007/f4
 public bool enabled(LogLevel level)
 {
     return this.m_level.m_ord <= level.m_ord;
 }