libcmutils 0.6.5
Multi-platform C99 utility library
Loading...
Searching...
No Matches
CMUTIL_Logger Struct Reference

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.
 

Detailed Description

Logger object.

Field Documentation

◆ LogEx

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.

Parameters
loggerA pointer to the CMUTIL_Logger object.
levelThe log level for the message.
fileThe source file name where the log is generated.
lineThe line number in the source file.
printStackA boolean indicating whether to include a stack trace.
fmtThe format string for the log message.
...Additional arguments for the format string.

◆ IsEnabled

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.

Parameters
loggerA pointer to the CMUTIL_Logger object.
levelThe log level to check.
Returns
CMTrue if logging is enabled for the specified level, CMFalse otherwise.

The documentation for this struct was generated from the following file: