logSetHandler
fun logSetHandler(logDomain: String? = null, logLevels: LogLevelFlags, logFunc: LogFunc): <Error class: unknown class>
Like g_log_set_handler(), but takes a destroy notify for the @user_data.
This has no effect if structured logging is enabled; see using-structured-logging.
Return
the id of the new handler
Since
2.46
Parameters
logDomain
the log domain, or null for the default "" application domain
logLevels
the log levels to apply the log handler for. To handle fatal and recursive messages as well, combine the log levels with the %G_LOG_FLAG_FATAL and %G_LOG_FLAG_RECURSION bit flags.
logFunc
the log handler function