Typedef yasmin::LogFunction
Defined in File logs.hpp
Typedef Documentation
-
typedef void (*yasmin::LogFunction)(LogLevel level, const char *file, const char *function, int line, const char *text)
Type definition for a logging function.
This type represents a function pointer that takes a file name, function name, line number, log message, and a variable number of additional arguments for formatting the log message.
- Param level:
The log level of the message
- Param file:
The name of the source file where the log function is called.
- Param function:
The name of the function where the log function is called.
- Param line:
The line number in the source file where the log function is called.
- Param text:
The format string for the log message, similar to printf.
- Param …:
Additional arguments for the format string.