Loading...
Searching...
No Matches
ConsoleLogger.h
Go to the documentation of this file.
#pragma once
#include <string>
#include <globjects/globjects_api.h>
#include <globjects/base/AbstractLogHandler.h>
namespace globjects
{
class LogMessage;
enum class LogMessageLevel : unsigned int;
class GLOBJECTS_API ConsoleLogger : public AbstractLogHandler
{
public:
virtual void handle(const LogMessage & message) override;
protected:
static std::string levelString(LogMessageLevel level);
};
} // namespace globjects
AbstractLogHandler.h
globjects::AbstractLogHandler
Abstract interface to handle LogMessages.
Definition AbstractLogHandler.h:24
globjects::ConsoleLogger
Writes LogMessages to stdout.
Definition ConsoleLogger.h:26
globjects::ConsoleLogger::levelString
static std::string levelString(LogMessageLevel level)
globjects::ConsoleLogger::handle
virtual void handle(const LogMessage &message) override
globjects::LogMessage
Encapsulates a simple log message and its severity level.
Definition LogMessage.h:24
globjects
Contains all the classes that wrap OpenGL functionality.
globjects::LogMessageLevel
LogMessageLevel
Definition LogMessageLevel.h:10