Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::Formatter Class Reference

Utility for formatting log messages with level and timestamp. More...

#include <Format.h>

Static Public Member Functions

static std::tuple< std::string, std::string > Format (const LogLevel level, std::string_view message)
 Formats a log message.

Detailed Description

Utility for formatting log messages with level and timestamp.

Provides methods to generate a formatted message string and associated color codes based on the log level. Internal helpers retrieve the current time and map log levels to strings or color indicators.

Member Function Documentation

◆ Format()

std::tuple< std::string, std::string > Raven::Formatter::Format ( const LogLevel level,
std::string_view message )
static

Formats a log message.

Parameters
levelThe severity level of the log message.
messageThe content of the log message.
Returns
A tuple containing the formatted message string and its color code string.

The documentation for this class was generated from the following files: