Log4gInternalLogging

Log4gInternalLogging — Internal logging API

Synopsis

void                log4g_log_debug                     (const gchar *format,
                                                         ...);
void                log4g_log_debugv                    (const gchar *format,
                                                         va_list ap);
void                log4g_log_warn                      (const gchar *format,
                                                         ...);
void                log4g_log_warnv                     (const gchar *format,
                                                         va_list ap);
void                log4g_log_error                     (const gchar *format,
                                                         ...);
void                log4g_log_errorv                    (const gchar *format,
                                                         va_list ap);
void                log4g_set_internal_debugging        (gboolean value);
void                log4g_set_quiet_mode                (gboolean value);

Description

This class is used to output log statements from within the Log4g package.

Log4g components cannot use the Log4g API. This API allows Log4g to output debugging statements to stdout. To enable debugging define the debug flag (Bash):

export LOG4G_FLAGS=debug

All internal debug statements go to stdout, error and warn messages are sent to stderr. All internal messages are prepended with the string "log4g: ".

Details

log4g_log_debug ()

void                log4g_log_debug                     (const gchar *format,
                                                         ...);

Log an debugging message.

format :

A printf message format.

... :

Format parameters.

Since 0.1


log4g_log_debugv ()

void                log4g_log_debugv                    (const gchar *format,
                                                         va_list ap);

Log an debugging message.

format :

A printf message format.

ap :

Format parameters.

Since 0.1


log4g_log_warn ()

void                log4g_log_warn                      (const gchar *format,
                                                         ...);

Log a warning message.

format :

A printf message format.

... :

Format parameters.

Since 0.1


log4g_log_warnv ()

void                log4g_log_warnv                     (const gchar *format,
                                                         va_list ap);

Log an warning message.

format :

A printf message format.

ap :

Format parameters.

Since 0.1


log4g_log_error ()

void                log4g_log_error                     (const gchar *format,
                                                         ...);

Log an error message.

format :

A printf message format.

... :

Format parameters.

Since 0.1


log4g_log_errorv ()

void                log4g_log_errorv                    (const gchar *format,
                                                         va_list ap);

Log an error message.

format :

A printf message format.

ap :

Format parameters.

Since 0.1


log4g_set_internal_debugging ()

void                log4g_set_internal_debugging        (gboolean value);

Set the internal debugging flag.

If the debugging flag is TRUE then Log4g will print debugging messages to stdout.

value :

The new debugging flag.

Since 0.1


log4g_set_quiet_mode ()

void                log4g_set_quiet_mode                (gboolean value);

Set the quiet mode flag.

If the quiet mode flag is TRUE then Log4g will not print any messages.

value :

The new quiet mode flag.

Since 0.1