![]() |
Rendering Engine 0.2.9
Modular Graphics Rendering Engine | v0.2.9
|
Singleton engine-wide logging system. More...
#include <logger.hpp>
Public Member Functions | |
| void | Initialize (const std::string &appName) |
| Initializes logging system and creates a new log file. More... | |
| void | Shutdown () |
| Finalizes logging system and closes the log file. More... | |
| void | Log (LogLevel level, const std::string &message, const char *file, int line) |
| Writes a formatted log message. More... | |
Static Public Member Functions | |
| static Logger & | Get () |
| Returns singleton logger instance. More... | |
Singleton engine-wide logging system.
Responsibilities:
The logger must be initialized during application startup and shutdown during application termination.
Definition at line 75 of file logger.hpp.
|
static |
Returns singleton logger instance.
Definition at line 33 of file logger.cpp.
| void rendering_engine::Logger::Initialize | ( | const std::string & | appName | ) |
Initializes logging system and creates a new log file.
| appName | Name of the application (used in log filename). |
Definition at line 39 of file logger.cpp.
| void rendering_engine::Logger::Log | ( | LogLevel | level, |
| const std::string & | message, | ||
| const char * | file, | ||
| int | line | ||
| ) |
Writes a formatted log message.
| level | Log severity level. |
| message | Log message string. |
| file | Source file name. |
| line | Source line number. |
Definition at line 121 of file logger.cpp.
| void rendering_engine::Logger::Shutdown | ( | ) |
Finalizes logging system and closes the log file.
Definition at line 82 of file logger.cpp.