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); } }
private static void Log(LogEntry.EntryLevel level, String message) { Log(new LogEntry(level, Guid.Empty, message)); }