Devel Lib
Devel::Logging Namespace Reference

The namespace encapsulating logging related classes and functions in the Devel framework. More...

Enumerations

enum  ESeverity : byte {
  None , Fatal , Error , Warning ,
  Info , Debug , Verbose
}
 

Functions

std::string DateTime ()
 
void Output (const std::string &i_sWhat, const rang::fg i_eColor)
 
void Initialize ()
 Logs a message with the specified severity. More...
 
void Log (const std::string &i_sMsg, ESeverity i_eSeverity=None)
 Inserts a new line in the log.
 
void NewLine ()
 Inserts a new line in the log.
 
void WaitEnter ()
 Waits for the user to press the Enter key.
 
void LogDebug (const std::string &i_sMsg, const ESeverity i_eSeverity=None)
 Logs a message with severity "Debug". More...
 

Variables

Devel::Threading::CMutex g_oMutex
 

Detailed Description

The namespace encapsulating logging related classes and functions in the Devel framework.

Function Documentation

◆ Initialize()

void Devel::Logging::Initialize ( )

Logs a message with the specified severity.

Parameters
i_sMsgThe message to be logged.
i_eSeverityThe severity level of the message.

◆ LogDebug()

void Devel::Logging::LogDebug ( const std::string &  i_sMsg,
const ESeverity  i_eSeverity = None 
)
inline

Logs a message with severity "Debug".

Parameters
i_sMsgThe message to be logged.
i_eSeverityThe severity level of the message.