[ Version ( since = "2.46" ) ]
public void set_handler_full (string? log_domain, LogLevelFlags log_levels, owned LogFunc log_func)
Like set_handler, but takes a destroy notify for the user_data
.
This has no effect if structured logging is enabled; see Using Structured Logging.
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 g_log_flag_fatal and g_log_flag_recursion bit flags. |
log_func |
the log handler function |
destroy |
destroy notify for |
user_data |
data passed to the log handler |
the id of the new handler |