MessageLog

Members

Static functions

logDefaultHandler
void logDefaultHandler(string logDomain, GLogLevelFlags logLevel, string message, void* unusedData)

The default log handler set up by GLib; g_log_set_default_handler() allows to install an alternate default log handler. This is used if no log handler has been set for the particular log domain and log level combination. It outputs the message to stderr or stdout and if the log level is fatal it calls G_BREAKPOINT(). It automatically prints a new-line character after the message, so one does not need to be manually included in @message.

logRemoveHandler
void logRemoveHandler(string logDomain, uint handlerId)

Removes the log handler.

logSetAlwaysFatal
GLogLevelFlags logSetAlwaysFatal(GLogLevelFlags fatalMask)

Sets the message levels which are always fatal, in any log domain. When a message with any of these levels is logged the program terminates. You can only set the levels defined by GLib to be fatal. %G_LOG_LEVEL_ERROR is always fatal.

logSetDefaultHandler
GLogFunc logSetDefaultHandler(GLogFunc logFunc, void* userData)

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.

logSetFatalMask
GLogLevelFlags logSetFatalMask(string logDomain, GLogLevelFlags fatalMask)

Sets the log levels which are fatal in the given domain. %G_LOG_LEVEL_ERROR is always fatal.

logSetHandler
uint logSetHandler(string logDomain, GLogLevelFlags logLevels, GLogFunc logFunc, void* userData)

Sets the log handler for a domain and a set of log levels. To handle fatal and recursive messages the @log_levels parameter must be combined with the #G_LOG_FLAG_FATAL and #G_LOG_FLAG_RECURSION bit flags.

logSetHandlerFull
uint logSetHandlerFull(string logDomain, GLogLevelFlags logLevels, GLogFunc logFunc, void* userData, GDestroyNotify destroy)

Like g_log_set_handler(), but takes a destroy notify for the @user_data.

logv
void logv(string logDomain, GLogLevelFlags logLevel, string format, void* args)

Logs an error or debugging message.

Meta