28# define LOG_PRINTF_ATTR __attribute__((__format__(__printf__, 1, 2)))
30# define LOG_PRINTF_ATTR
47 void setLogFile(
const std::string &logFilename);
60 void vinfo(const
char *log_text, va_list ap);
66 __attribute__((noreturn))
67 void critical(const std::
string &error_text);
The Log namespace: Useful to write debug or info messages to the log file and/or console.
void init()
Initializes the log system.
void verbose(const char *log_text,...) LOG_PRINTF_ATTR
void setLogToStandardOut(bool value)
Sets whether the log should be written to standard output.
void warn(const char *log_text,...) LOG_PRINTF_ATTR
void debug(const char *log_text,...) LOG_PRINTF_ATTR
void setLogFile(const std::string &logFilename)
Sets the file to log to and opens it.
void info(const char *log_text,...) LOG_PRINTF_ATTR
void error(const char *log_text,...) LOG_PRINTF_ATTR
void vinfo(const char *log_text, va_list ap)