set_default_handler


Description:

[ Version ( since = "2.6" ) ]
public void set_default_handler (LogFunc log_func)

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 default_handler as default log handler.

This has no effect if structured logging is enabled; see Using Structured Logging.

Parameters:

log_func

the log handler function

user_data

data passed to the log handler

Returns:

the previous default log handler


Namespace: GLib.Log
Package: glib-2.0



2022 vala-language.org