29#include "Portability.h"
32#ifndef DOXYGEN_SHOULD_SKIP_THIS
60 class GF_CORE_API
Log {
90 static void debug(
const char *fmt, ...) GF_FORMAT(1, 2) {
93 log(Level::Debug, fmt, ap);
102 static void info(
const char *fmt, ...) GF_FORMAT(1, 2) {
105 log(Level::Info, fmt, ap);
114 static void warning(
const char *fmt, ...) GF_FORMAT(1, 2) {
117 log(Level::Warn, fmt, ap);
126 static void error(
const char *fmt, ...) GF_FORMAT(1, 2) {
129 log(Level::Error, fmt, ap);
138 static void fatal(
const char *fmt, ...) GF_FORMAT(1, 2) {
141 log(Level::Fatal, fmt, ap);
148 static Level s_level;
151 static void log(Level level,
const char *fmt, va_list ap);
154#ifndef DOXYGEN_SHOULD_SKIP_THIS
Logging functions.
Definition: Log.h:60
Level
The severity level of the log.
Definition: Log.h:70
@ Error
The error level.
Definition: Log.h:74
@ Info
The info level.
Definition: Log.h:72
@ Warn
The warn level.
Definition: Log.h:73
@ Debug
The debug level.
Definition: Log.h:71
@ Fatal
The fatal level.
Definition: Log.h:75
static void debug(const char *fmt,...)
Print a debug message.
Definition: Log.h:90
static void setLevel(Level level)
Set a global severity level.
Log()=delete
Deleted constructor.
static void fatal(const char *fmt,...)
Print a fatal message and quit.
Definition: Log.h:138
static void error(const char *fmt,...)
Print an error message.
Definition: Log.h:126
static void warning(const char *fmt,...)
Print a warning message.
Definition: Log.h:114
static void info(const char *fmt,...)
Print an info message.
Definition: Log.h:102
The namespace for gf classes.