Function

GLiblog_set_fatal_mask

Declaration [src]

GLogLevelFlags
g_log_set_fatal_mask (
  const gchar* log_domain,
  GLogLevelFlags fatal_mask
)

Description [src]

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 g_log_structured() or g_log_structured_array()). To change the fatal behaviour for specific log messages, programs must install a custom log writer function using g_log_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

Type: const gchar*

The log domain.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
fatal_mask

Type: GLogLevelFlags

The new fatal mask.

Return value

Type: GLogLevelFlags

The old fatal mask for the log domain.