MessageLog.logSetFatalMask

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

This has no effect on structured log messages (using g_log_structured() or g_log_structured_array()). To change the fatal behaviour for specific log messages, programs must install a custom log writer function using g_log_set_writer_func(). See [Using Structured Logging][using-structured-logging].

struct MessageLog
static
logSetFatalMask

Parameters

logDomain string

the log domain

fatalMask GLogLevelFlags

the new fatal mask

Return Value

the old fatal mask for the log domain

Meta