Function cmb_logger_vfprintf
Defined in File cmb_logger.h
Function Documentation
-
int cmb_logger_vfprintf(FILE *fp, uint32_t flags, const char *func, int line, const char *fmtstr, va_list args)
The core logging function, like vfprintf but with logging flags in front of the argument list. Will usually be called from one of the wrapper functions, e.g.,
cmb_logger_info, not directly.- Parameters:
fp – File pointer, possibly
stdoutorstderrflags – Bitmask for this logging call, to be matched against the current logging bitmask. If bitwise
andis non-zero, this logging message will be printed.func – The function name where it is called from.
line – The line number it is called from.
fmtstr – A printf-like format string.
args – The arguments to the format string.