logSetHandler
fn
uint logSetHandler(string logDomain, glib.types.LogLevelFlags logLevels, glib.types.LogFunc logFunc)Like funcGLib.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.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 flagsGLib.LogLevelFlags.FLAG_FATAL and flagsGLib.LogLevelFlags.FLAG_RECURSION bit flags. |
logFunc | the log handler function |
Returns
the ID of the new handler