7#define __STDC_WANT_LIB_EXT1__ 1
10#include "helpers/DateTime.h"
11#include "helpers/formatstring.h"
36 namespace LoggerHelpers
44 std::string
FormatLogLine(
const std::string& logLevel,
const std::string& msg)
static const char * _GetTimeStamp(void)
Return a regular time stamp of the current time in local time.
Declaration of the LoggerHelpers namespace functions used in the Bridge Pattern.
Represents a timestamp composed of a date and a time encoded in a time_t value. Provides ways of gett...
static DateTime Now()
Return the current date and time.
std::string ToString()
Format the DateTime as a string. The format is "standard" (in this case, preset to 02/22/2023 10:26:1...
std::string FormatLogLine(const std::string &logLevel, const std::string &msg)
Format a line for logging, including time stamp.
The namespace containing all Design Pattern Examples implemented in C++.
std::string formatstring(const char *fmt,...)
Use the given string and arguments to return a buffer containing the formatted string....