public static void RemoveListener(IXLoggingListener listener) { lock (new object()){ if (listeners.ContainsKey(listener)) { listeners.Remove(listener); } } }
public static void AddListener(IXLoggingListener listener, Importance importance = Importance.INFO) { if (listeners.ContainsKey(listener)) { listeners[listener] = importance; } else { listeners.Add(listener, importance); } }