Function
GLiblog_set_handler_full
since: 2.46
Declaration
guint
g_log_set_handler_full (
const gchar* log_domain,
GLogLevelFlags log_levels,
GLogFunc log_func,
gpointer user_data,
GDestroyNotify destroy
)
Description
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.
Available since: 2.46
This function is renamed to g_log_set_handler() in language bindings.
Parameters
log_domain-
Type:
const gchar*The log domain, or
NULLfor the default""application domain.The argument can be NULL.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. log_levels-
Type:
GLogLevelFlagsThe 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_FATALandG_LOG_FLAG_RECURSIONbit flags. log_func-
Type:
GLogFuncThe log handler function.
user_data-
Type:
gpointerData passed to the log handler.
The argument can be NULL.The data is owned by the caller of the function. destroy-
Type:
GDestroyNotifyDestroy notify for
user_data, orNULL.