示例#1
0
 private void UpdateLogLevel()
 {
     _logLevel = ((XDBG.IsChecked == true ? LogEntry.EntryLevel.DBG : 0)
                  | (XINF.IsChecked == true ? LogEntry.EntryLevel.INF : 0)
                  | (XWRN.IsChecked == true ? LogEntry.EntryLevel.WRN : 0)
                  | (XERR.IsChecked == true ? LogEntry.EntryLevel.ERR : 0));
     EntryCollection.Refresh();
     UpdateScrolling();
 }
 public StreamToLogEntryWriter(LogEntry.EntryLevel level)
 {
     if (level == LogEntry.EntryLevel.INF)
     {
         _logAction = (s) => Logger.Info(s);
     }
     else if (level == LogEntry.EntryLevel.ERR)
     {
         _logAction = (s) => Logger.Error(s);
     }
 }
示例#3
0
文件: Logger.cs 项目: yarwelp/tooll
 private static void Log(LogEntry.EntryLevel level, String message)
 {
     Log(new LogEntry(level, Guid.Empty, message));
 }