11#include "helpers/datetime.h"
12#include "helpers/makelocaltime.h"
33 if (loglevel != NULL && message != NULL && output != NULL && maxOutputSize > 0)
37 int numChars = snprintf(output, maxOutputSize,
"%s [%s] %s\n", timestamp, loglevel, message);
bool LogHelper_FormatLogLine(const char *loglevel, const char *message, char *output, size_t maxOutputSize)
Format a line for logging, including time stamp.
static const char * _GetTimeStamp(void)
Return a regular time stamp of the current time in local time.
Declaration of the LogHelper_FormatLogLine() function, used in the Bridge Pattern.
time_t datetime_now(void)
Retrieve a time stamp that represents the current time.
const char * datetime_to_string(time_t timestamp)
Convert the specified time stamp to a string.