Arctic Engine
Designed to give you control and not take anything away.
|
Debugging and logging utilities. More...
Functions | |
std::unique_ptr< std::ostringstream, void(*)(std::ostringstream *str)> | arctic::Log () |
Provides a streaming interface to write log. More... | |
void | arctic::Log (const char *text) |
Writes message text to log. More... | |
void | arctic::Log (const char *text1, const char *text2) |
Writes two message texts to log. More... | |
void | arctic::Log (const char *text1, const char *text2, const char *text3) |
Writes three message texts to log. More... | |
void | arctic::StartLogger () |
Starts the logger. More... | |
void | arctic::StopLogger () |
Stops the logger. More... | |
Debugging and logging utilities.
This module provides tools for debugging and logging:
Logging functions help track application state and diagnose issues during development.
std::unique_ptr< std::ostringstream, void(*)(std::ostringstream *str)> arctic::Log | ( | ) |
Provides a streaming interface to write log.
The logger is automatically started by the engine before EasyMain is called, so users only need to use this function to write log messages.
Usage example:
void arctic::Log | ( | const char * | text | ) |
Writes message text to log.
text | The text message to be logged |
void arctic::Log | ( | const char * | text1, |
const char * | text2 | ||
) |
Writes two message texts to log.
text1 | The first text message to be logged |
text2 | The second text message to be logged |
void arctic::Log | ( | const char * | text1, |
const char * | text2, | ||
const char * | text3 | ||
) |
Writes three message texts to log.
text1 | The first text message to be logged |
text2 | The second text message to be logged |
text3 | The third text message to be logged |
void arctic::StartLogger | ( | ) |
Starts the logger.
void arctic::StopLogger | ( | ) |
Stops the logger.