static void FormatLog(char* buffer, unsigned bufferSize, LogMessageId messageId, const char* fmt, va_list argList);
FormatLog is a helper function used by LogMessageVarg to format the log message, writing the resulting string into buffer. It formats text based on fmt and appends prefix/new line based on LogMessageType.
Parameters |
Description |
char* buffer |
The buffer which is used to hold the formatted log message. |
unsigned bufferSize |
The size of the buffer. |
LogMessageId messageId |
Type of the message being logged. |
const char* fmt |
A printf-style format string for the log message. |
va_list argList |
A variable argument list, as described by fmt. |