globjects  2.0.0.690708773bba
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 
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_API AbstractLogHandler * loggingHandler()
GLOBJECTS_API LogMessageLevel verbosityLevel()
GLOBJECTS_API void setLoggingHandler(AbstractLogHandler *handler)
Contains all the classes that wrap OpenGL functionality.
LogMessageLevel
Definition: LogMessageLevel.h:9
GLOBJECTS_API LogMessageBuilder debug()
GLOBJECTS_API LogMessageBuilder info(LogMessageLevel level=LogMessageLevel::Info)
GLOBJECTS_API LogMessageBuilder critical()
GLOBJECTS_API LogMessageBuilder fatal()
GLOBJECTS_API void setVerbosityLevel(LogMessageLevel verbosity)
GLOBJECTS_API LogMessageBuilder warning()