logSetFatalMask
fn
glib.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
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 | the log domain |
fatalMask | the new fatal mask |
Returns
the old fatal mask for the log domain