LibTMJ  1.0.0
A library for loading JSON Tiled maps
Functions | Variables
Logging

Private logging API. More...

Functions

void logmsg (tmj_log_priority priority, char *msg,...)
 Processes log messages and passes them to the active logging callback, if there is one. More...
 

Variables

char logmsg_buf []
 Statically-allocated memory to hold log messages which are passed to the logging callback. More...
 

Detailed Description

Private logging API.

Function Documentation

◆ logmsg()

void logmsg ( tmj_log_priority  priority,
char *  msg,
  ... 
)

Processes log messages and passes them to the active logging callback, if there is one.

Parameters
priorityOne of the set of log priorities defined in the LOG_PRIORITY enum.
msgA printf-style format string for the message to be logged
...Format string arguments for the previous argument. See printf() for detail.

Definition at line 23 of file log.c.

Here is the caller graph for this function:

Variable Documentation

◆ logmsg_buf

char logmsg_buf[]
extern

Statically-allocated memory to hold log messages which are passed to the logging callback.

Definition at line 16 of file log.c.