GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AnsiConsoleLogger.hpp
Go to the documentation of this file.
1 #ifndef RADIX_ANSI_CONSOLE_LOGGER_HPP
2 #define RADIX_ANSI_CONSOLE_LOGGER_HPP
3 
4 #include <mutex>
5 #include <string>
6 
8 
9 namespace radix {
10 
14 class AnsiConsoleLogger : public Logger {
15 protected:
16  std::mutex mtx;
17 
18 public:
27 
29 
30  const char* getName() const;
31  void log(const std::string &message, LogLevel lvl, const std::string &tag);
32 };
33 } /* namespace radix */
34 
35 #endif /* RADIX_ANSI_CONSOLE_LOGGER_HPP */
Definition: GameController.hpp:7
std::mutex mtx
Definition: AnsiConsoleLogger.hpp:16
Base class to create log sinks.
Definition: Logger.hpp:20
const char * getName() const
Returns the name of the Logger instance.
Definition: AnsiConsoleLogger.cpp:37
AnsiConsoleLogger()
Definition: AnsiConsoleLogger.cpp:26
void log(const std::string &message, LogLevel lvl, const std::string &tag)
Log a message.
Definition: AnsiConsoleLogger.cpp:60
bool enableBackground
Enables colored backround on log tags.
Definition: AnsiConsoleLogger.hpp:26
Logger that outputs to an ANSI/vt-100 console.
Definition: AnsiConsoleLogger.hpp:14
bool enableColors
Enables colored output.
Definition: AnsiConsoleLogger.hpp:22
LogLevel
Definition: Logger.hpp:8