Function

GLiblogv

Declaration [src]

void
g_logv (
  const gchar* log_domain,
  GLogLevelFlags log_level,
  const gchar* format,
  va_list args
)

Description [src]

Logs an error or debugging message.

If the log level has been set as fatal, G_BREAKPOINT() is called to terminate the program. See the documentation for G_BREAKPOINT() for details of the debugging options this provides.

If g_log_default_handler() is used as the log handler function, a new-line character will automatically be appended to @…, and need not be entered manually.

If [structured logging is enabled][using-structured-logging] this will output via the structured log writer function (see g_log_set_writer_func()).

Parameters

log_domain const gchar*
 

The log domain, or NULL for the default “” application domain.

 The argument can be NULL.
 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
log_level GLogLevelFlags
 

The log level.

format const gchar*
 

The message format. See the printf() documentation.

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

The parameters to insert into the format string.