| globjects 1.0.0.000000000000 Strict OpenGL objects wrapper.

ConsoleLogger.h
Go to the documentation of this file.
1
2 #pragma once
3
4 #include <string>
5
6 #include <globjects/globjects_api.h>
7
8 #include <globjects/base/AbstractLogHandler.h>
9
10
11 namespace globjects
12 {
13
14
15 class LogMessage;
16 enum class LogMessageLevel : unsigned int;
17
25 class GLOBJECTS_API ConsoleLogger : public AbstractLogHandler
26 {
27 public:
28 virtual void handle(const LogMessage & message) override;
29
30 protected:
31 static std::string levelString(LogMessageLevel level);
32 };
33
34
35 } // namespace globjects
globjects
Contains all the classes that wrap OpenGL functionality.
globjects::LogMessageLevel
LogMessageLevel
Definition: LogMessageLevel.h:9
globjects::LogMessage
Encapsulates a simple log message and its severity level.
Definition: LogMessage.h:23
AbstractLogHandler.h
globjects::ConsoleLogger
Writes LogMessages to stdout.
Definition: ConsoleLogger.h:25
globjects::AbstractLogHandler
Abstract interface to handle LogMessages.
Definition: AbstractLogHandler.h:23