Function

GLibset_printerr_handler

Declaration

GPrintFunc
g_set_printerr_handler (
  GPrintFunc func
)

Description

Sets the handler for printing error messages.

Any messages passed to g_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.

This function is not directly available to language bindings.

Parameters

func

Type: GPrintFunc

The new error message handler.

Return value

Type: GPrintFunc

The old error message handler.