Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gmessages.h File Reference
#include <stdarg.h>
#include <glib/gatomic.h>
#include <glib/gtypes.h>
#include <glib/gmacros.h>
#include <glib/gvariant.h>

Go to the source code of this file.

Data Structures

struct  _GLogField
 

Macros

#define G_LOG_LEVEL_USER_SHIFT   (8)
 
#define G_LOG_FATAL_MASK   (G_LOG_FLAG_RECURSION | G_LOG_LEVEL_ERROR)
 
#define G_DEBUG_HERE()
 
#define G_LOG_DOMAIN   ((gchar*) 0)
 
#define g_error(...)
 
#define g_message(...)
 
#define g_critical(...)
 
#define g_warning(...)
 
#define g_info(...)
 
#define g_debug(...)
 
#define g_warning_once(...)
 
#define g_warn_if_reached()
 
#define g_warn_if_fail(expr)
 
#define g_return_if_fail(expr)
 
#define g_return_val_if_fail(expr, val)
 
#define g_return_if_reached()
 
#define g_return_val_if_reached(val)
 

Typedefs

typedef void(* GLogFunc) (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data)
 
typedef struct _GLogField GLogField
 
typedef GLogWriterOutput(* GLogWriterFunc) (GLogLevelFlags log_level, const GLogField *fields, gsize n_fields, gpointer user_data)
 
typedef void(* GPrintFunc) (const gchar *string)
 

Enumerations

enum  GLogLevelFlags {
  G_LOG_FLAG_RECURSION = 1 << 0 , G_LOG_FLAG_FATAL = 1 << 1 , G_LOG_LEVEL_ERROR = 1 << 2 , G_LOG_LEVEL_CRITICAL = 1 << 3 ,
  G_LOG_LEVEL_WARNING = 1 << 4 , G_LOG_LEVEL_MESSAGE = 1 << 5 , G_LOG_LEVEL_INFO = 1 << 6 , G_LOG_LEVEL_DEBUG = 1 << 7 ,
  G_LOG_LEVEL_MASK = ~(G_LOG_FLAG_RECURSION | G_LOG_FLAG_FATAL)
}
 
enum  GLogWriterOutput { G_LOG_WRITER_HANDLED = 1 , G_LOG_WRITER_UNHANDLED = 0 }
 

Functions

G_BEGIN_DECLS GLIB_AVAILABLE_IN_ALL gsize g_printf_string_upper_bound (const gchar *format, va_list args) G_GNUC_PRINTF(1
 
GLIB_AVAILABLE_IN_ALL guint g_log_set_handler (const gchar *log_domain, GLogLevelFlags log_levels, GLogFunc log_func, gpointer user_data)
 
GLIB_AVAILABLE_IN_2_46 guint g_log_set_handler_full (const gchar *log_domain, GLogLevelFlags log_levels, GLogFunc log_func, gpointer user_data, GDestroyNotify destroy)
 
GLIB_AVAILABLE_IN_ALL void g_log_remove_handler (const gchar *log_domain, guint handler_id)
 
GLIB_AVAILABLE_IN_ALL void g_log_default_handler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer unused_data)
 
GLIB_AVAILABLE_IN_ALL GLogFunc g_log_set_default_handler (GLogFunc log_func, gpointer user_data)
 
GLIB_AVAILABLE_IN_ALL void g_log (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format,...) G_GNUC_PRINTF(3
 
GLIB_AVAILABLE_IN_ALL void GLIB_AVAILABLE_IN_ALL void g_logv (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format, va_list args) G_GNUC_PRINTF(3
 
GLIB_AVAILABLE_IN_ALL void GLIB_AVAILABLE_IN_ALL void GLIB_AVAILABLE_IN_ALL GLogLevelFlags g_log_set_fatal_mask (const gchar *log_domain, GLogLevelFlags fatal_mask)
 
GLIB_AVAILABLE_IN_ALL GLogLevelFlags g_log_set_always_fatal (GLogLevelFlags fatal_mask)
 
GLIB_AVAILABLE_IN_2_50 void g_log_structured (const gchar *log_domain, GLogLevelFlags log_level,...)
 
GLIB_AVAILABLE_IN_2_50 void g_log_structured_array (GLogLevelFlags log_level, const GLogField *fields, gsize n_fields)
 
GLIB_AVAILABLE_IN_2_50 void g_log_variant (const gchar *log_domain, GLogLevelFlags log_level, GVariant *fields)
 
GLIB_AVAILABLE_IN_2_50 void g_log_set_writer_func (GLogWriterFunc func, gpointer user_data, GDestroyNotify user_data_free)
 
GLIB_AVAILABLE_IN_2_50 gboolean g_log_writer_supports_color (gint output_fd)
 
GLIB_AVAILABLE_IN_2_50 gboolean g_log_writer_is_journald (gint output_fd)
 
GLIB_AVAILABLE_IN_2_50 gcharg_log_writer_format_fields (GLogLevelFlags log_level, const GLogField *fields, gsize n_fields, gboolean use_color)
 
GLIB_AVAILABLE_IN_2_80 GLogWriterOutput g_log_writer_syslog (GLogLevelFlags log_level, const GLogField *fields, gsize n_fields, gpointer user_data)
 
GLIB_AVAILABLE_IN_2_50 GLogWriterOutput g_log_writer_journald (GLogLevelFlags log_level, const GLogField *fields, gsize n_fields, gpointer user_data)
 
GLIB_AVAILABLE_IN_2_50 GLogWriterOutput g_log_writer_standard_streams (GLogLevelFlags log_level, const GLogField *fields, gsize n_fields, gpointer user_data)
 
GLIB_AVAILABLE_IN_2_50 GLogWriterOutput g_log_writer_default (GLogLevelFlags log_level, const GLogField *fields, gsize n_fields, gpointer user_data)
 
GLIB_AVAILABLE_IN_2_68 void g_log_writer_default_set_use_stderr (gboolean use_stderr)
 
GLIB_AVAILABLE_IN_2_68 gboolean g_log_writer_default_would_drop (GLogLevelFlags log_level, const char *log_domain)
 
GLIB_AVAILABLE_IN_2_80 void g_log_writer_default_set_debug_domains (const gchar *const *domains)
 
GLIB_AVAILABLE_IN_2_72 gboolean g_log_get_debug_enabled (void)
 
GLIB_AVAILABLE_IN_2_72 void g_log_set_debug_enabled (gboolean enabled)
 
void _g_log_fallback_handler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer unused_data)
 
GLIB_AVAILABLE_IN_ALL void g_return_if_fail_warning (const char *log_domain, const char *pretty_function, const char *expression) G_ANALYZER_NORETURN
 
GLIB_AVAILABLE_IN_ALL void g_warn_message (const char *domain, const char *file, int line, const char *func, const char *warnexpr) G_ANALYZER_NORETURN
 
G_NORETURN GLIB_DEPRECATED void g_assert_warning (const char *log_domain, const char *file, const int line, const char *pretty_function, const char *expression)
 
GLIB_AVAILABLE_IN_2_56 void g_log_structured_standard (const gchar *log_domain, GLogLevelFlags log_level, const gchar *file, const gchar *line, const gchar *func, const gchar *message_format,...) G_GNUC_PRINTF(6
 
GLIB_AVAILABLE_IN_ALL void g_print (const gchar *format,...) G_GNUC_PRINTF(1
 
GLIB_AVAILABLE_IN_ALL void GLIB_AVAILABLE_IN_ALL GPrintFunc g_set_print_handler (GPrintFunc func)
 
GLIB_AVAILABLE_IN_ALL void g_printerr (const gchar *format,...) G_GNUC_PRINTF(1
 
GLIB_AVAILABLE_IN_ALL void GLIB_AVAILABLE_IN_ALL GPrintFunc g_set_printerr_handler (GPrintFunc func)
 

Macro Definition Documentation

◆ g_critical

#define g_critical ( ...)
Value:
__VA_ARGS__)
#define G_LOG_DOMAIN
Definition gmessages.h:320
GLIB_AVAILABLE_IN_ALL void g_log(const gchar *log_domain, GLogLevelFlags log_level, const gchar *format,...) G_GNUC_PRINTF(3
@ G_LOG_LEVEL_CRITICAL
Definition gmessages.h:63

Definition at line 359 of file gmessages.h.

359#define g_critical(...) g_log (G_LOG_DOMAIN, \
360 G_LOG_LEVEL_CRITICAL, \
361 __VA_ARGS__)

Referenced by g_object_notify_queue_freeze(), and g_object_notify_queue_thaw().

◆ g_debug

#define g_debug ( ...)
Value:
__VA_ARGS__)
@ G_LOG_LEVEL_DEBUG
Definition gmessages.h:67

Definition at line 368 of file gmessages.h.

368#define g_debug(...) g_log (G_LOG_DOMAIN, \
369 G_LOG_LEVEL_DEBUG, \
370 __VA_ARGS__)

◆ G_DEBUG_HERE

#define G_DEBUG_HERE ( )
Value:
"CODE_FILE", __FILE__, \
"CODE_LINE", G_STRINGIFY (__LINE__), \
"CODE_FUNC", G_STRFUNC, \
"MESSAGE", "%" G_GINT64_FORMAT ": %s", \
#define G_GINT64_FORMAT
Definition glibconfig.h:73
#define G_STRLOC
Definition gmacros.h:890
#define G_STRFUNC
Definition gmacros.h:901
#define G_STRINGIFY(macro_or_string)
Definition gmacros.h:861
G_GNUC_END_IGNORE_DEPRECATIONS GLIB_AVAILABLE_IN_ALL gint64 g_get_monotonic_time(void)
GLIB_AVAILABLE_IN_2_50 void g_log_structured(const gchar *log_domain, GLogLevelFlags log_level,...)

G_DEBUG_HERE:

A convenience form of g_log_structured(), recommended to be added to functions when debugging. It prints the current monotonic time and the code location using G_STRLOC.

Since: 2.50

Definition at line 277 of file gmessages.h.

277#define G_DEBUG_HERE() \
278 g_log_structured (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, \
279 "CODE_FILE", __FILE__, \
280 "CODE_LINE", G_STRINGIFY (__LINE__), \
281 "CODE_FUNC", G_STRFUNC, \
282 "MESSAGE", "%" G_GINT64_FORMAT ": %s", \
283 g_get_monotonic_time (), G_STRLOC)

◆ g_error

#define g_error ( ...)
Value:
g_log (G_LOG_DOMAIN, \
__VA_ARGS__); \
for (;;) ; \
#define G_STMT_END
Definition gmacros.h:997
#define G_STMT_START
Definition gmacros.h:989
@ G_LOG_LEVEL_ERROR
Definition gmessages.h:62

Definition at line 350 of file gmessages.h.

350#define g_error(...) G_STMT_START { \
351 g_log (G_LOG_DOMAIN, \
352 G_LOG_LEVEL_ERROR, \
353 __VA_ARGS__); \
354 for (;;) ; \
355 } G_STMT_END

◆ g_info

#define g_info ( ...)
Value:
__VA_ARGS__)
@ G_LOG_LEVEL_INFO
Definition gmessages.h:66

Definition at line 365 of file gmessages.h.

365#define g_info(...) g_log (G_LOG_DOMAIN, \
366 G_LOG_LEVEL_INFO, \
367 __VA_ARGS__)

◆ G_LOG_DOMAIN

#define G_LOG_DOMAIN   ((gchar*) 0)

Definition at line 320 of file gmessages.h.

◆ G_LOG_FATAL_MASK

#define G_LOG_FATAL_MASK   (G_LOG_FLAG_RECURSION | G_LOG_LEVEL_ERROR)

Definition at line 73 of file gmessages.h.

◆ G_LOG_LEVEL_USER_SHIFT

#define G_LOG_LEVEL_USER_SHIFT   (8)

Definition at line 51 of file gmessages.h.

◆ g_message

#define g_message ( ...)
Value:
__VA_ARGS__)
@ G_LOG_LEVEL_MESSAGE
Definition gmessages.h:65

Definition at line 356 of file gmessages.h.

356#define g_message(...) g_log (G_LOG_DOMAIN, \
357 G_LOG_LEVEL_MESSAGE, \
358 __VA_ARGS__)

◆ g_return_if_fail

#define g_return_if_fail ( expr)
Value:
if (G_LIKELY (expr)) \
{ } \
else \
{ \
g_return_if_fail_warning (G_LOG_DOMAIN, \
#expr); \
return; \
} \
#define G_LIKELY(expr)
Definition gmacros.h:1251
static void expr(LexState *ls, expdesc *v)

Definition at line 649 of file gmessages.h.

649#define g_return_if_fail(expr) \
650 G_STMT_START { \
651 if (G_LIKELY (expr)) \
652 { } \
653 else \
654 { \
655 g_return_if_fail_warning (G_LOG_DOMAIN, \
656 G_STRFUNC, \
657 #expr); \
658 return; \
659 } \
660 } G_STMT_END

Referenced by g_object_notify_queue_add(), g_object_notify_queue_clear(), and g_object_notify_queue_thaw().

◆ g_return_if_reached

#define g_return_if_reached ( )
Value:
g_log (G_LOG_DOMAIN, \
"file %s: line %d (%s): should not be reached", \
__FILE__, \
__LINE__, \
return; \

Definition at line 675 of file gmessages.h.

675#define g_return_if_reached() \
676 G_STMT_START { \
677 g_log (G_LOG_DOMAIN, \
678 G_LOG_LEVEL_CRITICAL, \
679 "file %s: line %d (%s): should not be reached", \
680 __FILE__, \
681 __LINE__, \
682 G_STRFUNC); \
683 return; \
684 } G_STMT_END

◆ g_return_val_if_fail

#define g_return_val_if_fail ( expr,
val )
Value:
if (G_LIKELY (expr)) \
{ } \
else \
{ \
g_return_if_fail_warning (G_LOG_DOMAIN, \
#expr); \
return (val); \
} \

Definition at line 662 of file gmessages.h.

662#define g_return_val_if_fail(expr, val) \
663 G_STMT_START { \
664 if (G_LIKELY (expr)) \
665 { } \
666 else \
667 { \
668 g_return_if_fail_warning (G_LOG_DOMAIN, \
669 G_STRFUNC, \
670 #expr); \
671 return (val); \
672 } \
673 } G_STMT_END

◆ g_return_val_if_reached

#define g_return_val_if_reached ( val)
Value:
g_log (G_LOG_DOMAIN, \
"file %s: line %d (%s): should not be reached", \
__FILE__, \
__LINE__, \
return (val); \

Definition at line 686 of file gmessages.h.

686#define g_return_val_if_reached(val) \
687 G_STMT_START { \
688 g_log (G_LOG_DOMAIN, \
689 G_LOG_LEVEL_CRITICAL, \
690 "file %s: line %d (%s): should not be reached", \
691 __FILE__, \
692 __LINE__, \
693 G_STRFUNC); \
694 return (val); \
695 } G_STMT_END

◆ g_warn_if_fail

#define g_warn_if_fail ( expr)
Value:
do { \
if G_LIKELY (expr) ; \
else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, #expr); \
} while (0)
GLIB_AVAILABLE_IN_ALL void g_warn_message(const char *domain, const char *file, int line, const char *func, const char *warnexpr) G_ANALYZER_NORETURN

g_warn_if_fail: @expr: the expression to check

Logs a warning if the expression is not true.

Unlike g_return_if_fail(), the expression is always evaluated, even if checks and assertions are disabled.

Since: 2.16

Definition at line 560 of file gmessages.h.

560#define g_warn_if_fail(expr) \
561 do { \
562 if G_LIKELY (expr) ; \
563 else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, #expr); \
564 } while (0)

◆ g_warn_if_reached

#define g_warn_if_reached ( )
Value:
do { \
g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, NULL); \
} while (0)
#define NULL
Definition gmacros.h:924

g_warn_if_reached:

Logs a warning.

Since: 2.16

Definition at line 544 of file gmessages.h.

544#define g_warn_if_reached() \
545 do { \
546 g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, NULL); \
547 } while (0)

◆ g_warning

#define g_warning ( ...)
Value:
__VA_ARGS__)
@ G_LOG_LEVEL_WARNING
Definition gmessages.h:64

Definition at line 362 of file gmessages.h.

362#define g_warning(...) g_log (G_LOG_DOMAIN, \
363 G_LOG_LEVEL_WARNING, \
364 __VA_ARGS__)

◆ g_warning_once

#define g_warning_once ( ...)
Value:
static int G_PASTE (_GWarningOnceBoolean, __LINE__) = 0; /* (atomic) */ \
if (g_atomic_int_compare_and_exchange (&G_PASTE (_GWarningOnceBoolean, __LINE__), \
0, 1)) \
g_warning (__VA_ARGS__); \
} G_STMT_END \
GLIB_AVAILABLE_MACRO_IN_2_64
#define g_atomic_int_compare_and_exchange(atomic, oldval, newval)
Definition gatomic.h:533
#define G_PASTE(identifier1, identifier2)
Definition gmacros.h:865

g_warning_once: ...: format string, followed by parameters to insert into the format string (as with printf())

Logs a warning only once.

g_warning_once() calls g_warning() with the passed message the first time the statement is executed; subsequent times it is a no-op.

Note! On platforms where the compiler doesn't support variadic macros, the warning is printed each time instead of only once.

Since: 2.64

Definition at line 497 of file gmessages.h.

497#define g_warning_once(...) \
498 G_STMT_START { \
499 static int G_PASTE (_GWarningOnceBoolean, __LINE__) = 0; /* (atomic) */ \
500 if (g_atomic_int_compare_and_exchange (&G_PASTE (_GWarningOnceBoolean, __LINE__), \
501 0, 1)) \
502 g_warning (__VA_ARGS__); \
503 } G_STMT_END \
504 GLIB_AVAILABLE_MACRO_IN_2_64

Typedef Documentation

◆ GLogField

typedef struct _GLogField GLogField

GLogField: @key: field name (UTF-8 string) @value: field value (arbitrary bytes) @length: length of @value, in bytes, or -1 if it is nul-terminated

Structure representing a single field in a structured log entry. See g_log_structured() for details.

Log fields may contain arbitrary values, including binary with embedded nul bytes. If the field contains a string, the string must be UTF-8 encoded and have a trailing nul byte. Otherwise, @length must be set to a non-negative value.

Since: 2.50

Definition at line 158 of file gmessages.h.

◆ GLogFunc

typedef void(* GLogFunc) (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data)

Definition at line 75 of file gmessages.h.

◆ GLogWriterFunc

typedef GLogWriterOutput(* GLogWriterFunc) (GLogLevelFlags log_level, const GLogField *fields, gsize n_fields, gpointer user_data)

GLogWriterFunc: @log_level: log level of the message @fields: (array length=n_fields): fields forming the message @n_fields: number of @fields @user_data: user data passed to g_log_set_writer_func()

Writer function for log entries. A log entry is a collection of one or more #GLogFields, using the standard field names from journal specification. See g_log_structured() for more information.

Writer functions must ignore fields which they do not recognise, unless they can write arbitrary binary output, as field values may be arbitrary binary.

@log_level is guaranteed to be included in @fields as the PRIORITY field, but is provided separately for convenience of deciding whether or where to output the log entry.

Writer functions should return G_LOG_WRITER_HANDLED if they handled the log message successfully or if they deliberately ignored it. If there was an error handling the message (for example, if the writer function is meant to send messages to a remote logging server and there is a network error), it should return G_LOG_WRITER_UNHANDLED. This allows writer functions to be chained and fall back to simpler handlers in case of failure.

Returns: G_LOG_WRITER_HANDLED if the log entry was handled successfully; G_LOG_WRITER_UNHANDLED otherwise

Since: 2.50

Definition at line 197 of file gmessages.h.

◆ GPrintFunc

typedef void(* GPrintFunc) (const gchar *string)

GPrintFunc: @string: the message to output

Specifies the type of the print handler functions. These are called with the complete formatted string to output.

Definition at line 525 of file gmessages.h.

Enumeration Type Documentation

◆ GLogLevelFlags

Enumerator
G_LOG_FLAG_RECURSION 
G_LOG_FLAG_FATAL 
G_LOG_LEVEL_ERROR 
G_LOG_LEVEL_CRITICAL 
G_LOG_LEVEL_WARNING 
G_LOG_LEVEL_MESSAGE 
G_LOG_LEVEL_INFO 
G_LOG_LEVEL_DEBUG 
G_LOG_LEVEL_MASK 

Definition at line 55 of file gmessages.h.

56{
57 /* log flags */
58 G_LOG_FLAG_RECURSION = 1 << 0,
59 G_LOG_FLAG_FATAL = 1 << 1,
60
61 /* GLib log levels */
62 G_LOG_LEVEL_ERROR = 1 << 2, /* always fatal */
63 G_LOG_LEVEL_CRITICAL = 1 << 3,
64 G_LOG_LEVEL_WARNING = 1 << 4,
65 G_LOG_LEVEL_MESSAGE = 1 << 5,
66 G_LOG_LEVEL_INFO = 1 << 6,
67 G_LOG_LEVEL_DEBUG = 1 << 7,
68
GLogLevelFlags
Definition gmessages.h:56
@ G_LOG_FLAG_RECURSION
Definition gmessages.h:58
@ G_LOG_LEVEL_MASK
Definition gmessages.h:69
@ G_LOG_FLAG_FATAL
Definition gmessages.h:59

◆ GLogWriterOutput

GLogWriterOutput: @G_LOG_WRITER_HANDLED: Log writer has handled the log entry. @G_LOG_WRITER_UNHANDLED: Log writer could not handle the log entry.

Return values from #GLogWriterFuncs to indicate whether the given log entry was successfully handled by the writer, or whether there was an error in handling it (and hence a fallback writer should be used).

If a GLogWriterFunc ignores a log entry, it should return G_LOG_WRITER_HANDLED.

Since: 2.50

Enumerator
G_LOG_WRITER_HANDLED 
G_LOG_WRITER_UNHANDLED 

Definition at line 136 of file gmessages.h.

137{
GLogWriterOutput
Definition gmessages.h:137
@ G_LOG_WRITER_UNHANDLED
Definition gmessages.h:139
@ G_LOG_WRITER_HANDLED
Definition gmessages.h:138

Function Documentation

◆ _g_log_fallback_handler()

void _g_log_fallback_handler ( const gchar * log_domain,
GLogLevelFlags log_level,
const gchar * message,
gpointer unused_data )

◆ g_assert_warning()

G_NORETURN GLIB_DEPRECATED void g_assert_warning ( const char * log_domain,
const char * file,
const int line,
const char * pretty_function,
const char * expression )

◆ g_log()

GLIB_AVAILABLE_IN_ALL void g_log ( const gchar * log_domain,
GLogLevelFlags log_level,
const gchar * format,
... )

◆ g_log_default_handler()

GLIB_AVAILABLE_IN_ALL void g_log_default_handler ( const gchar * log_domain,
GLogLevelFlags log_level,
const gchar * message,
gpointer unused_data )

◆ g_log_get_debug_enabled()

GLIB_AVAILABLE_IN_2_72 gboolean g_log_get_debug_enabled ( void )

◆ g_log_remove_handler()

GLIB_AVAILABLE_IN_ALL void g_log_remove_handler ( const gchar * log_domain,
guint handler_id )

◆ g_log_set_always_fatal()

GLIB_AVAILABLE_IN_ALL GLogLevelFlags g_log_set_always_fatal ( GLogLevelFlags fatal_mask)

◆ g_log_set_debug_enabled()

GLIB_AVAILABLE_IN_2_72 void g_log_set_debug_enabled ( gboolean enabled)

◆ g_log_set_default_handler()

GLIB_AVAILABLE_IN_ALL GLogFunc g_log_set_default_handler ( GLogFunc log_func,
gpointer user_data )

◆ g_log_set_fatal_mask()

GLIB_AVAILABLE_IN_ALL void GLIB_AVAILABLE_IN_ALL void GLIB_AVAILABLE_IN_ALL GLogLevelFlags g_log_set_fatal_mask ( const gchar * log_domain,
GLogLevelFlags fatal_mask )

◆ g_log_set_handler()

GLIB_AVAILABLE_IN_ALL guint g_log_set_handler ( const gchar * log_domain,
GLogLevelFlags log_levels,
GLogFunc log_func,
gpointer user_data )

◆ g_log_set_handler_full()

GLIB_AVAILABLE_IN_2_46 guint g_log_set_handler_full ( const gchar * log_domain,
GLogLevelFlags log_levels,
GLogFunc log_func,
gpointer user_data,
GDestroyNotify destroy )

◆ g_log_set_writer_func()

GLIB_AVAILABLE_IN_2_50 void g_log_set_writer_func ( GLogWriterFunc func,
gpointer user_data,
GDestroyNotify user_data_free )

◆ g_log_structured()

GLIB_AVAILABLE_IN_2_50 void g_log_structured ( const gchar * log_domain,
GLogLevelFlags log_level,
... )

◆ g_log_structured_array()

GLIB_AVAILABLE_IN_2_50 void g_log_structured_array ( GLogLevelFlags log_level,
const GLogField * fields,
gsize n_fields )

◆ g_log_structured_standard()

GLIB_AVAILABLE_IN_2_56 void g_log_structured_standard ( const gchar * log_domain,
GLogLevelFlags log_level,
const gchar * file,
const gchar * line,
const gchar * func,
const gchar * message_format,
... )

◆ g_log_variant()

GLIB_AVAILABLE_IN_2_50 void g_log_variant ( const gchar * log_domain,
GLogLevelFlags log_level,
GVariant * fields )

◆ g_log_writer_default()

GLIB_AVAILABLE_IN_2_50 GLogWriterOutput g_log_writer_default ( GLogLevelFlags log_level,
const GLogField * fields,
gsize n_fields,
gpointer user_data )

◆ g_log_writer_default_set_debug_domains()

GLIB_AVAILABLE_IN_2_80 void g_log_writer_default_set_debug_domains ( const gchar *const * domains)

◆ g_log_writer_default_set_use_stderr()

GLIB_AVAILABLE_IN_2_68 void g_log_writer_default_set_use_stderr ( gboolean use_stderr)

◆ g_log_writer_default_would_drop()

GLIB_AVAILABLE_IN_2_68 gboolean g_log_writer_default_would_drop ( GLogLevelFlags log_level,
const char * log_domain )

◆ g_log_writer_format_fields()

GLIB_AVAILABLE_IN_2_50 gchar * g_log_writer_format_fields ( GLogLevelFlags log_level,
const GLogField * fields,
gsize n_fields,
gboolean use_color )

◆ g_log_writer_is_journald()

GLIB_AVAILABLE_IN_2_50 gboolean g_log_writer_is_journald ( gint output_fd)

◆ g_log_writer_journald()

GLIB_AVAILABLE_IN_2_50 GLogWriterOutput g_log_writer_journald ( GLogLevelFlags log_level,
const GLogField * fields,
gsize n_fields,
gpointer user_data )

◆ g_log_writer_standard_streams()

GLIB_AVAILABLE_IN_2_50 GLogWriterOutput g_log_writer_standard_streams ( GLogLevelFlags log_level,
const GLogField * fields,
gsize n_fields,
gpointer user_data )

◆ g_log_writer_supports_color()

GLIB_AVAILABLE_IN_2_50 gboolean g_log_writer_supports_color ( gint output_fd)

◆ g_log_writer_syslog()

GLIB_AVAILABLE_IN_2_80 GLogWriterOutput g_log_writer_syslog ( GLogLevelFlags log_level,
const GLogField * fields,
gsize n_fields,
gpointer user_data )

◆ g_logv()

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

◆ g_print()

GLIB_AVAILABLE_IN_ALL void g_print ( const gchar * format,
... )

◆ g_printerr()

GLIB_AVAILABLE_IN_ALL void g_printerr ( const gchar * format,
... )

◆ g_printf_string_upper_bound()

G_BEGIN_DECLS GLIB_AVAILABLE_IN_ALL gsize g_printf_string_upper_bound ( const gchar * format,
va_list args )

◆ g_return_if_fail_warning()

GLIB_AVAILABLE_IN_ALL void g_return_if_fail_warning ( const char * log_domain,
const char * pretty_function,
const char * expression )

◆ g_set_print_handler()

◆ g_set_printerr_handler()

◆ g_warn_message()

GLIB_AVAILABLE_IN_ALL void g_warn_message ( const char * domain,
const char * file,
int line,
const char * func,
const char * warnexpr )