Mana
Loading...
Searching...
No Matches
Functions
Log Namespace Reference

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

Functions

void init ()
 Initializes the log system.
 
void setLogFile (const std::string &logFilename)
 Sets the file to log to and opens it.
 
void setLogToStandardOut (bool value)
 Sets whether the log should be written to standard output.
 
void verbose (const char *log_text,...) LOG_PRINTF_ATTR
 
void debug (const char *log_text,...) LOG_PRINTF_ATTR
 
void info (const char *log_text,...) LOG_PRINTF_ATTR
 
void warn (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)
 

Detailed Description

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

The messages will be timestamped.

Function Documentation

◆ debug()

void Log::debug ( const char *  log_text,
  ... 
)

◆ error()

void Log::error ( const char *  log_text,
  ... 
)

◆ info()

void Log::info ( const char *  log_text,
  ... 
)

◆ init()

void Log::init ( )

Initializes the log system.

Definition at line 84 of file log.cpp.

◆ setLogFile()

void Log::setLogFile ( const std::string &  logFilename)

Sets the file to log to and opens it.

Definition at line 89 of file log.cpp.

◆ setLogToStandardOut()

void Log::setLogToStandardOut ( bool  value)

Sets whether the log should be written to standard output.

Definition at line 100 of file log.cpp.

◆ verbose()

void Log::verbose ( const char *  log_text,
  ... 
)

◆ vinfo()

void Log::vinfo ( const char *  log_text,
va_list  ap 
)

◆ warn()

void Log::warn ( const char *  log_text,
  ... 
)