set_handler_full
Description:
[ Version ( since = "2.46" ) ]
public void set_handler_full (string? log_domain, LogLevelFlags log_levels, owned LogFunc log_func)
public void set_handler_full (string? log_domain, LogLevelFlags log_levels, owned LogFunc log_func)
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 [Using Structured Logging](logging.html#using-structured-logging).
Parameters:
log_domain |
the log domain, or `NULL` for the default `""` application domain |
log_levels |
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. |
log_func |
the log handler function |
destroy |
destroy notify for |
user_data |
data passed to the log handler |
Returns:
the ID of the new handler |
Namespace: GLib.Log
Package: glib-2.0