Elaztek Developer Hub
Blamite Game Engine - Strings  00326.06.27.21.0407.blamite
A library containing general purpose utilities and classes for use in multiple projects.
BlamStrings::Interface::Logger Namespace Reference

Namespace containing functions related to the logger. More...

Functions

STRINGS_API std::string GenerateLogLevelPrefix (BlamLogLevel log_level)
 Generates a prefix for a given log level, such as [INFO] or [WARN]. More...
 
STRINGS_API TerminalColor TranslateLogLevelAsColor (BlamLogLevel log_level)
 Translates a given BlamLogLevel into the appropriate terminal color. More...
 
STRINGS_API void PrintMessageToStdout (std::string message, TerminalColor color)
 Prints a message to the standard output. More...
 

Detailed Description

Namespace containing functions related to the logger.

Function Documentation

◆ GenerateLogLevelPrefix()

std::string BlamStrings::Interface::Logger::GenerateLogLevelPrefix ( BlamLogLevel  log_level)

Generates a prefix for a given log level, such as [INFO] or [WARN].

Parameters
log_level- The log level to create a prefix for.
Returns
An appropriate prefix for the log level.

◆ PrintMessageToStdout()

void BlamStrings::Interface::Logger::PrintMessageToStdout ( std::string  message,
TerminalColor  color 
)

Prints a message to the standard output.

Parameters
message- The message to print.
color- The terminal color to use for the message.

◆ TranslateLogLevelAsColor()

TerminalColor BlamStrings::Interface::Logger::TranslateLogLevelAsColor ( BlamLogLevel  log_level)

Translates a given BlamLogLevel into the appropriate terminal color.

Parameters
log_level- The log level to determine a color for.
Returns
The appropriate TerminalColor for the given log level.