Declaration [src]

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][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.


log_domain const gchar*

The log domain.

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

The new fatal mask.

Return value

Returns: GLogLevelFlags

The old fatal mask for the log domain.