Function

GLiblog_set_default_handler

Declaration

GLogFunc
g_log_set_default_handler (
  GLogFunc log_func,
  gpointer user_data
)

Description

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].

Available since:2.6

Parameters

log_func GLogFunc
 

The log handler function.

user_data gpointer
 

Data passed to the log handler.

Return value

Returns: GLogFunc
 

The previous default log handler.