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
StdoutLogger.hpp
Go to the documentation of this file.
1 #ifndef RADIX_STDOUT_LOGGER_HPP
2 #define RADIX_STDOUT_LOGGER_HPP
3 
4 #include <mutex>
5 #include <string>
6 
8 
9 namespace radix {
10 
14 class StdoutLogger : public Logger {
15 protected:
16  std::mutex mtx;
17 
18 public:
19  const char* getName() const;
20  void log(const std::string &message, LogLevel lvl, const std::string &tag);
21 };
22 
23 } /* namespace radix */
24 
25 #endif /* RADIX_STDOUT_LOGGER_HPP */
Definition: GameController.hpp:7
Base class to create log sinks.
Definition: Logger.hpp:20
const char * getName() const
Returns the name of the Logger instance.
Definition: StdoutLogger.cpp:7
std::mutex mtx
Definition: StdoutLogger.hpp:16
Logger that outputs to an ANSI/vt-100 console.
Definition: StdoutLogger.hpp:14
void log(const std::string &message, LogLevel lvl, const std::string &tag)
Log a message.
Definition: StdoutLogger.cpp:11
LogLevel
Definition: Logger.hpp:8