Ejemplo n.º 1
0
        /// <summary>
        /// The default log handler set up by GLib; <see cref="SetDefaultHandler"/>
        /// allows to install an alternate default log handler.
        /// </summary>
        /// <param name="logDomain">the log domain, or <see langword="null" /> for the default "" application domain</param>
        /// <param name="logLevel">the level of the message</param>
        /// <param name="message">the message</param>
        public static void DefaultHandler(string logDomain, Enums.LogLevelFlags logLevel, string message)
        {
            var nmess = message.ToUtf8Ptr();

            GLib.GLogDefaultHandler(logDomain, logLevel, nmess, IntPtr.Zero);
            GLib.GFree(nmess);
        }