Skip to content
TechnologicalTurtle edited this page Jul 21, 2026 · 1 revision

Debug namespace

Is namespace used internally for logging.

Properties

bool LogRepeated

Should be log printed, if it's same as previous log?

Default = false;

bool ErrorCrash

Should program crash on Error() call?

Default = false;

Debug::DebugLevel_ LogFilter

Filters out of console anything with value same or below LogFilter, DebugLevel_ values here.

Default = Debug::DebugLevel_None

Functions

There are only functions for logging to console:

void Happy(...)

Prints message to console with green prefix "[LOG]:".

void Log(...)

Prints message to console with gray prefix "[LOG]:".

void Warn(...)

Prints message to console with yellow prefix "[WARNING]:".

void Error(...)

Prints message to console with red prefix "[ERROR]:".
If ErrorCrash is true, then throws an exception.

void Fatal(...)

Prints message to console with purple prefix "[FATAL]:", then throws an exception.

Note

Don't worry, as this can happen only in few instances such as that library couldn't initialize.

Clone this wiki locally