QOF: qoflog.h File Reference

QOF 0.7.5

Macros | Typedefs | Enumerations | Functions
qoflog.h File Reference
Query Object Framework » Trace: Debugging support

QOF error logging and tracing facility. More...

`#include <stdarg.h>`
`#include <stdio.h>`
`#include "qofutil.h"`

Go to the source code of this file.

## Macros
#define | QOF_MOD_ENGINE "qof-engine"
#define | LOG_LEVEL_LIST(_)
#define | FUNK qof_log_prettify(__FUNCTION__)
#define | FATAL(format, args...)
#define | PERR(format, args...)
#define | PWARN(format, args...)
#define | PINFO(format, args...)
#define | DEBUG(format, args...)
#define | ENTER(format, args...)
#define | LEAVE(format, args...)
#define | TRACE(format, args...)
#define | DEBUGCMD(x)

## Typedefs
typedef void(* | QofLogCB) (QofLogModule log_module, QofLogLevel *log_level, gpointer user_data)

## Enumerations
enum | QofLogLevel { QOF_LOG_FATAL = 0, QOF_LOG_ERROR = 1, QOF_LOG_WARNING = 2, QOF_LOG_INFO = 3, QOF_LOG_DEBUG = 4, QOF_LOG_DETAIL = 5, QOF_LOG_TRACE = 6 }

## Functions
const gchar * | QofLogLevelasString (QofLogLevel n)
QofLogLevel | QofLogLevelfromString (const gchar *str)
void | qof_log_add_indent (void)
gint | qof_log_get_indent (void)
void | qof_log_drop_indent (void)
void | qof_log_init (void)
void | qof_log_set_level (QofLogModule module, QofLogLevel level)
void | qof_log_set_level_registered (QofLogLevel level)
void | qof_log_set_file (FILE *outfile)
void | qof_log_init_filename (const gchar *logfilename)
void | qof_log_shutdown (void)
const gchar * | qof_log_prettify (const gchar *name)
gboolean | qof_log_check (QofLogModule log_module, QofLogLevel log_level)
void | qof_log_set_default (QofLogLevel log_level)
void | qof_log_module_foreach (QofLogCB cb, gpointer data)
gint | qof_log_module_count (void)

## Detailed Description

QOF error logging and tracing facility.

Definition in file qoflog.h.