Loading...
Searching...
No Matches
baselogging.h
Go to the documentation of this file.
#pragma once
#include <globjects/globjects_api.h>
#include <globjects/base/LogMessage.h>
#include <globjects/base/LogMessageBuilder.h>
namespace globjects
{
class AbstractLogHandler;
GLOBJECTS_API LogMessageBuilder info(LogMessageLevel level = LogMessageLevel::Info);
GLOBJECTS_API LogMessageBuilder debug();
GLOBJECTS_API LogMessageBuilder warning();
GLOBJECTS_API LogMessageBuilder critical();
GLOBJECTS_API LogMessageBuilder fatal();
GLOBJECTS_API void setLoggingHandler(AbstractLogHandler * handler);
GLOBJECTS_API AbstractLogHandler * loggingHandler();
GLOBJECTS_API void setVerbosityLevel(LogMessageLevel verbosity);
GLOBJECTS_API LogMessageLevel verbosityLevel();
template <typename... Arguments>
void info(const char* format, Arguments... arguments);
template <typename... Arguments>
void debug(const char* format, Arguments... arguments);
template <typename... Arguments>
void warning(const char* format, Arguments... arguments);
template <typename... Arguments>
void critical(const char* format, Arguments... arguments);
template <typename... Arguments>
void fatal(const char* format, Arguments... arguments);
} // namespace globjects
#include <globjects/base/baselogging.inl>
LogMessage.h
LogMessageBuilder.h
globjects::AbstractLogHandler
Abstract interface to handle LogMessages.
Definition AbstractLogHandler.h:24
globjects::LogMessageBuilder
Builds a LogMessage from different kinds of primitive types.
Definition LogMessageBuilder.h:49
globjects
Contains all the classes that wrap OpenGL functionality.
globjects::warning
GLOBJECTS_API LogMessageBuilder warning()
globjects::critical
GLOBJECTS_API LogMessageBuilder critical()
globjects::loggingHandler
GLOBJECTS_API AbstractLogHandler * loggingHandler()
globjects::fatal
GLOBJECTS_API LogMessageBuilder fatal()
globjects::LogMessageLevel
LogMessageLevel
Definition LogMessageLevel.h:10
globjects::LogMessageLevel::Info
@ Info
globjects::info
GLOBJECTS_API LogMessageBuilder info(LogMessageLevel level=LogMessageLevel::Info)
globjects::setLoggingHandler
GLOBJECTS_API void setLoggingHandler(AbstractLogHandler *handler)
globjects::debug
GLOBJECTS_API LogMessageBuilder debug()
globjects::setVerbosityLevel
GLOBJECTS_API void setVerbosityLevel(LogMessageLevel verbosity)
globjects::verbosityLevel
GLOBJECTS_API LogMessageLevel verbosityLevel()