set_printerr_handler


Description:

public void set_printerr_handler (PrintFunc func)

Sets the handler for printing error messages.

Any messages passed to printerr will be output via the new handler. The default handler simply outputs the message to stderr. By providing your own handler you can redirect the output, to a GTK+ widget or a log file for example.

Parameters:

func

the new error message handler

Returns:

the old error message handler


Namespace: GLib
Package: glib-2.0