Design Pattern Examples
Overview of object-oriented design patterns
DesignPatternExamples_cpp::LoggerHelpers Namespace Reference

Helper functions for all loggers. More...

Functions

std::string FormatLogLine (const std::string &logLevel, const std::string &msg)
 Format a line for logging, including time stamp.
 

Detailed Description

Helper functions for all loggers.

Function Documentation

◆ FormatLogLine()

std::string FormatLogLine ( const std::string &  logLevel,
const std::string &  msg 
)

Format a line for logging, including time stamp.

Parameters
logLevelLevel of logging (TRACE, INFO, ERROR)
msgMessage to log
Returns
The formatted string to log.

Definition at line 44 of file Bridge_LoggerHelpers.cpp.

References _GetTimeStamp(), and Helpers::formatstring().