/// <summary> /// Removes the log handler. /// </summary> /// <param name="logDomain">the log domain</param> /// <param name="handlerId">the id of the handler, which was returned in <see cref="SetLogHandler"/></param> public static void RemoveLogHandler(string logDomain, uint handlerId) { if (_handlers != null && _handlers.ContainsKey(handlerId) && _handlers.TryRemove(handlerId, out var handler)) { handler.Free(); } GLib.GLogRemoveHandler(logDomain, handlerId); }