logSetFatalMask

fnglib.types.LogLevelFlags logSetFatalMask(string logDomain, glib.types.LogLevelFlags fatalMask)

Sets the log levels which are fatal in the given domain.

flagsGLib.LogLevelFlags.LEVEL_ERROR is always fatal.

This has no effect on structured log messages (using funcGLib.log_structured or funcGLib.log_structured_array). To change the fatal behaviour for specific log messages, programs must install a custom log writer function using funcGLib.log_set_writer_func. See

Using Structured Logging.

This function is mostly intended to be used with flagsGLib.LogLevelFlags.LEVEL_CRITICAL. You should typically not set flagsGLib.LogLevelFlags.LEVEL_WARNING, flagsGLib.LogLevelFlags.LEVEL_MESSAGE, flagsGLib.LogLevelFlags.LEVEL_INFO or flagsGLib.LogLevelFlags.LEVEL_DEBUG as fatal except inside of test programs.

Parameters

logDomainthe log domain
fatalMaskthe new fatal mask

Returns

the old fatal mask for the log domain