logSetFatalMask

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

logDomain string

the log domain

fatalMask glib.types.LogLevelFlags

the new fatal mask

Return Value

Type: glib.types.LogLevelFlags

the old fatal mask for the log domain