Arctic Engine
Designed to give you control and not take anything away.

Debugging and logging utilities. More...

Collaboration diagram for Log:

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...
 

Detailed Description

Debugging and logging utilities.

This module provides tools for debugging and logging:

Logging functions help track application state and diagnose issues during development.

Function Documentation

◆ Log() [1/4]

std::unique_ptr< std::ostringstream, void(*)(std::ostringstream *str)> arctic::Log ( )

Provides a streaming interface to write log.

Returns
A unique pointer to an ostringstream with a custom deleter

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:

*Log() << "Hello World!";
*Log() << "Value: " << 42;
*Log() << "Position: " << x << ", " << y;
void Log(const char *text)
Writes message text to log.
Definition: log.cpp:167

◆ Log() [2/4]

void arctic::Log ( const char *  text)

Writes message text to log.

Parameters
textThe text message to be logged
Here is the caller graph for this function:

◆ Log() [3/4]

void arctic::Log ( const char *  text1,
const char *  text2 
)

Writes two message texts to log.

Parameters
text1The first text message to be logged
text2The second text message to be logged

◆ Log() [4/4]

void arctic::Log ( const char *  text1,
const char *  text2,
const char *  text3 
)

Writes three message texts to log.

Parameters
text1The first text message to be logged
text2The second text message to be logged
text3The third text message to be logged

◆ StartLogger()

void arctic::StartLogger ( )

Starts the logger.

Note
This function is called automatically by the engine before EasyMain is called. Users do not need to call this function manually.
Here is the call graph for this function:

◆ StopLogger()

void arctic::StopLogger ( )

Stops the logger.

Note
This function is called automatically by the engine when the program exits. Users do not need to call this function manually.