|
libcmutils 0.6.5
Multi-platform C99 utility library
|
Logger object. More...
Data Fields | |
| void(* | LogEx )(CMUTIL_Logger *logger, CMLogLevel level, const char *file, int line, CMBool printStack, const char *fmt,...) |
| Log a message with extended information. | |
| CMBool(* | IsEnabled )(CMUTIL_Logger *logger, CMLogLevel level) |
| Check if logging is enabled for the specified log level. | |
Logger object.
| void(* CMUTIL_Logger::LogEx) (CMUTIL_Logger *logger, CMLogLevel level, const char *file, int line, CMBool printStack, const char *fmt,...) |
Log a message with extended information.
This function logs a message at the specified log level, including the source file name, line number, and optionally a stack trace.
| logger | A pointer to the CMUTIL_Logger object. |
| level | The log level for the message. |
| file | The source file name where the log is generated. |
| line | The line number in the source file. |
| printStack | A boolean indicating whether to include a stack trace. |
| fmt | The format string for the log message. |
| ... | Additional arguments for the format string. |
| CMBool(* CMUTIL_Logger::IsEnabled) (CMUTIL_Logger *logger, CMLogLevel level) |
Check if logging is enabled for the specified log level.
This function checks whether logging is enabled for the given log level in the logger.
| logger | A pointer to the CMUTIL_Logger object. |
| level | The log level to check. |