MessageLog.logSetDefaultHandler

Installs a default log handler which is used if no log handler has been set for the particular log domain and log level combination. By default, GLib uses g_log_default_handler() as default log handler.

This has no effect if structured logging is enabled; see [Using Structured Logging][using-structured-logging].

struct MessageLog
static
logSetDefaultHandler

Parameters

logFunc GLogFunc

the log handler function

userData void*

data passed to the log handler

Return Value

Type: GLogFunc

the previous default log handler

Meta