![]() |
Castle Battle
1.0
|
This singleton class handles logs and debugging. More...
#include <Logger.h>
Public Member Functions | |
void | print (LOG_TYPE type, int level, core::stringc str) |
Print message. More... | |
Static Public Member Functions | |
static Logger * | getLogger () |
Return the instance. More... | |
Private Member Functions | |
void | initLogger () |
Init singleton logger. More... | |
Logger () | |
Default constructor. More... | |
Static Private Attributes | |
static Logger * | logger = NULL |
Self instance. More... | |
This singleton class handles logs and debugging.
In particular the DEBUG_OUTPUT_MASK directive define the verbosity of the messages. DEBUG_OUTPUT_MASK 1 mean enable all couts that have level = 1 on their calls DEBUG_OUTPUT_MASK 2 mean enable all couts that have level = 2 on their calls DEBUG_OUTPUT_MASK 3 mean enable all tracing and debugging For now there are 2 level. The level 2 will also activate a visual debugging(you can move around the map)
|
static |
Return the instance.
|
private |
Init singleton logger.
void Logger::print | ( | LOG_TYPE | type, |
int | level, | ||
core::stringc | str | ||
) |
|
staticprivate |
Self instance.