Logger class reference
Allows displaying detailed messages on the console. It supports text coloring, time stamps and gives information about where the error occurred. This is a purely static class and can be used without creating an object.
Functions
Functions documentation
static void Log(LoggerMsgTypelmt, const char* fromFile, int line, const char* fromFunction, const char* message, ...);
The default and the only function that displays the message by the logger.
static void ProcessType(LoggerMsgTypelmt,ConsoleColor& cc, size_t & len);
Selects the message color and adds information about the message type.
static void SetConsoleColor(ConsoleColorcolor, size_t rows);
Sets the text color in the console.
static void GetTimeStamp(char* buffer, size_t len);Creates a time stamp.
static size_t CalcRowsAmount(const char* message, size_t len, size_t offset);Calculates the number of lines needed to display the message.
static size_t GetConsoleWidth();Returns the width of the console.