Modules that require logging must include the header filelogger.h.
The following API functions are declared in logger.h:
log_open
log_init_resource
log_message
log_rsrc_message
log_close
log_init_from_context
log_get_context
log_hexdump
log_message_force
log_rsrc_message_force
In addition to the method references, logger.h also contains the datatype:
typedef struct logger_context logger_context;
log_open
Use the log_open method to initialize RAPLogging.
log_init_resource
Use the log_init_resource method to initialize a resource bundle.
log_message
The log_message method writes the logging message and level into the log file.
log_rsrc_message
Logs the message identified by the msgKey key at the specified logging level and against the error code err_num.
log_close
The log_close method closes the log file and log hierarchy.
log_init_from_context
The log_init_from_context method initializes the RAPLogging from an existing context created by a previous call to log_open().
log_get_context
The log_get_context method returns a pointer to the logger_context used by current RAPLogging instance.
log_hexdump
Format and log a traditional memory dump starting at the address supplied and the length supplied. Use the supplied context string at the top and bottom to make it easy to identify. Use the internal logger-> debug function to write it to the current log file.
log_message_force
The log_message_force method writes the logging message and level into the log file.
log_rsrc_message_force
The log_rsrc_message_force method writes the logging message and level into the log file, regardless of the filter value of the log level.