18static void _WriteLine(
const char* loglevel,
const char* message)
20 char buffer[512] = { 0 };
static void _Console_LogError(const char *message, void *data)
Write an error message to the console.
void DestroyConsoleLogger(ILogger *logger)
Destroy the given instance of an ILogger for outputting to a console.
static void _Console_LogTrace(const char *message, void *data)
Write a trace message to the console.
ILogger * CreateConsoleLogger(void)
Create an instance of an ILogger that outputs to a console.
static void _Console_LogInfo(const char *message, void *data)
Write an informational message to the console.
static void _WriteLine(const char *loglevel, const char *message)
Send a formatted line to the console.
bool LogHelper_FormatLogLine(const char *loglevel, const char *message, char *output, size_t maxOutputSize)
Format a line for logging, including time stamp.
Declaration of the LogHelper_FormatLogLine() function, used in the Bridge Pattern.
Declaration of the ConsoleLogger class used in the Bridge Pattern.
void(* LogError)(const char *message, void *data)
Log error messages to the configured output.
void * data
Data associated with a specific instance of a logger.
void(* LogInfo)(const char *message, void *data)
Log informational messages to the configured output.
void(* LogTrace)(const char *message, void *data)