logSetFatalMask

fun logSetFatalMask(logDomain: String, fatalMask: LogLevelFlags): LogLevelFlags

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.

This function is mostly intended to be used with %G_LOG_LEVEL_CRITICAL. You should typically not set %G_LOG_LEVEL_WARNING, %G_LOG_LEVEL_MESSAGE, %G_LOG_LEVEL_INFO or %G_LOG_LEVEL_DEBUG as fatal except inside of test programs.

Return

the old fatal mask for the log domain

Parameters

logDomain

the log domain

fatalMask

the new fatal mask