5 #include "../include/tmj.h"
11 #define LOGMSG_BUFSIZE 1024
void logmsg(tmj_log_priority priority, char *msg,...)
Processes log messages and passes them to the active logging callback, if there is one.
char logmsg_buf[LOGMSG_BUFSIZE]
Statically-allocated memory to hold log messages which are passed to the logging callback.
enum TMJ_LOG_PRIORITY tmj_log_priority
void tmj_log_regcb(bool debug, void(*callback)(tmj_log_priority, const char *))
Registers a callback function to handle logging events.
void(* log_callback)(tmj_log_priority, const char *)