set_fatal_mask


Description:

public LogLevelFlags set_fatal_mask (string log_domain, LogLevelFlags log_levels)

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

[flags@GLib.LogLevelFlags.LEVEL_ERROR] is always fatal.

This has no effect on structured log messages (using [func@GLib.log_structured] or [func@GLib.log_structured_array]). To change the fatal behaviour for specific log messages, programs must install a custom log writer function using [func@GLib.log_set_writer_func]. See [Using Structured Logging](logging.html#using-structured-logging).

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

Parameters:

log_domain

the log domain

fatal_mask

the new fatal mask

Returns:

the old fatal mask for the log domain


Namespace: GLib.Log
Package: glib-2.0