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
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