28 short _level = (short)LogLevel::info | (
short)LogLevel::warning |
29 (short)LogLevel::error | (
short)LogLevel::debug |
30 (short)LogLevel::memory;
31 static std::mutex _mutex;
68 static void Log_(std::string text,
enum LogLevel level);
70 static std::string LogLevelToText_(
enum LogLevel);
Log manages logging with levels and timestamps.
Definition logger.hpp:14
LogLevel
Enum specifying the log level.
Definition logger.hpp:19
void SetLevel(short log_level)
Sets the levels that are supposed to be displayed.
Definition logger.cpp:18
void operator()(LogLevel level, std::string text)
Prints out a log with a set log level.
Definition logger.cpp:7