| globjects 1.0.0.000000000000 Strict OpenGL objects wrapper.

baselogging.h
Go to the documentation of this file.
1
2 #pragma once
3
4 #include <globjects/globjects_api.h>
5
6 #include <globjects/base/LogMessage.h>
7 #include <globjects/base/LogMessageBuilder.h>
8
9
10 namespace globjects
11 {
12
13
14 class AbstractLogHandler;
15
25 GLOBJECTS_API LogMessageBuilder info(LogMessageLevel level = LogMessageLevel::Info);
26 GLOBJECTS_API LogMessageBuilder debug();
27 GLOBJECTS_API LogMessageBuilder warning();
28 GLOBJECTS_API LogMessageBuilder critical();
29 GLOBJECTS_API LogMessageBuilder fatal();
30
31 GLOBJECTS_API void setLoggingHandler(AbstractLogHandler * handler);
32 GLOBJECTS_API AbstractLogHandler * loggingHandler();
33
34 GLOBJECTS_API void setVerbosityLevel(LogMessageLevel verbosity);
35 GLOBJECTS_API LogMessageLevel verbosityLevel();
36
48 template <typename... Arguments>
49 void info(const char* format, Arguments... arguments);
50
54 template <typename... Arguments>
55 void debug(const char* format, Arguments... arguments);
56
60 template <typename... Arguments>
61 void warning(const char* format, Arguments... arguments);
62
66 template <typename... Arguments>
67 void critical(const char* format, Arguments... arguments);
68
72 template <typename... Arguments>
73 void fatal(const char* format, Arguments... arguments);
74
75
76 } // namespace globjects
77
78
79 #include <globjects/base/baselogging.inl>
globjects::loggingHandler
GLOBJECTS_API AbstractLogHandler * loggingHandler()
globjects::verbosityLevel
GLOBJECTS_API LogMessageLevel verbosityLevel()
globjects::setLoggingHandler
GLOBJECTS_API void setLoggingHandler(AbstractLogHandler *handler)
LogMessage.h
globjects
Contains all the classes that wrap OpenGL functionality.
globjects::LogMessageLevel
LogMessageLevel
Definition: LogMessageLevel.h:9
globjects::debug
GLOBJECTS_API LogMessageBuilder debug()
globjects::info
GLOBJECTS_API LogMessageBuilder info(LogMessageLevel level=LogMessageLevel::Info)
globjects::critical
GLOBJECTS_API LogMessageBuilder critical()
globjects::fatal
GLOBJECTS_API LogMessageBuilder fatal()
LogMessageBuilder.h
globjects::setVerbosityLevel
GLOBJECTS_API void setVerbosityLevel(LogMessageLevel verbosity)
globjects::warning
GLOBJECTS_API LogMessageBuilder warning()
globjects::LogMessageLevel::Info