logSetHandler

fun logSetHandler(logDomain: String? = null, logLevels: LogLevelFlags, logFunc: LogFunc): <Error class: unknown class>

Like func@GLib.log_set_handler, but takes a destroy notify for the @user_data.

This has no effect if structured logging is enabled; see logging.html#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 flags@GLib.LogLevelFlags.FLAG_FATAL and flags@GLib.LogLevelFlags.FLAG_RECURSION bit flags.

logFunc

the log handler function