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.

g_log_level_error is always fatal.

This has no effect on structured log messages (using log_structured or log_structured_array). To change the fatal behaviour for specific log messages, programs must install a custom log writer function using 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.

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



2022 vala-language.org