Mana
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
log.h File Reference
#include <string>
#include <cstdarg>

Go to the source code of this file.

Namespaces

namespace  Log
 The Log namespace: Useful to write debug or info messages to the log file and/or console.
 

Macros

#define LOG_PRINTF_ATTR
 

Functions

void Log::init ()
 Initializes the log system.
 
void Log::setLogFile (const std::string &logFilename)
 Sets the file to log to and opens it.
 
void Log::setLogToStandardOut (bool value)
 Sets whether the log should be written to standard output.
 
void Log::verbose (const char *log_text,...) LOG_PRINTF_ATTR
 
void Log::debug (const char *log_text,...) LOG_PRINTF_ATTR
 
void Log::info (const char *log_text,...) LOG_PRINTF_ATTR
 
void Log::warn (const char *log_text,...) LOG_PRINTF_ATTR
 
void Log::error (const char *log_text,...) LOG_PRINTF_ATTR
 
void Log::vinfo (const char *log_text, va_list ap)
 

Macro Definition Documentation

◆ LOG_PRINTF_ATTR

#define LOG_PRINTF_ATTR

Definition at line 30 of file log.h.