/// <summary> /// 移除记录器 /// </summary> /// <param name="eventProcessor">日志记录器</param> public static void RemoveEventProcessor(BaseEventProcessor eventProcessor) { if (ProcessorList.Contains(eventProcessor)) { ProcessorList.Remove(eventProcessor); } }
/// <summary> /// 添加记录器 /// </summary> /// <param name="eventProcessor">日志记录器</param> public static void AddEventProcessor(BaseEventProcessor eventProcessor) { if (!ProcessorList.Contains(eventProcessor)) { ProcessorList.Add(eventProcessor); } }