public void OnOpenGroup(IActivityLogGroup group) { if (group.MaskedGroupLevel >= LogLevel.Error) { string s = DumpErrorText(group.LogTime, group.GroupText, group.MaskedGroupLevel, group.GroupTags, group.EnsureExceptionData()); SystemActivityMonitor.HandleError(s); } }
public void OnUnfilteredLog(ActivityMonitorLogData data) { var level = data.Level & LogLevel.Mask; if (level >= LogLevel.Error) { string s = DumpErrorText(data.LogTime, data.Text, data.Level, null, data.Tags); SystemActivityMonitor.HandleError(s); } }