Go to the documentation of this file.
75 #include <jasper/jas_config.h>
94 #define JAS_DBGLOG(n, x) \
95 ((jas_get_debug_level() >= (n)) ? (jas_eprintf x) : 0)
97 #define JAS_DBGLOG(n, x)
101 #define JAS_LOGDEBUGF(n, ...) \
102 ((jas_get_debug_level() >= (n)) ? jas_logdebugf((n), __VA_ARGS__) : 0)
104 #define JAS_LOGDEBUGF(n, ...)
189 int jas_memdump(FILE *out,
const void *data,
size_t len);
195 #define JAS_STRINGIFY(x) #x
201 #define JAS_STRINGIFYX(x) JAS_STRINGIFY(x)
JasPer Initialization/Cleanup Code.
JAS_EXPORT int jas_logwarnf(const char *fmt,...)
Generate a warning log message.
Definition: jas_debug.c:131
JasPer Logging Functionality.
JAS_EXPORT int jas_memdump(FILE *out, const void *data, size_t len)
Dump memory to a stream.
Definition: jas_debug.c:227
#define JAS_LOGTYPE_CLASS_INFO
Definition: jas_log.h:100
JAS_EXPORT int jas_logerrorf(const char *fmt,...)
Generate an error log message.
Definition: jas_debug.c:119
#define JAS_LOGTYPE_CLASS_DEBUG
Definition: jas_log.h:102
JAS_EXPORT int jas_eprintf(const char *fmt,...)
Print formatted text for the standard error stream (i.e., stderr).
Definition: jas_debug.c:96
static int jas_get_debug_level(void)
Get the debug level for a particular context.
Definition: jas_init.h:429
#define JAS_LOGTYPE_CLASS_NULL
Definition: jas_log.h:94
#define JAS_LOGTYPE_CLASS_WARN
Definition: jas_log.h:98
static jas_vlogmsgf_t * jas_get_vlogmsgf(void)
Get the function to be used for log messages.
Definition: jas_init.h:482
static jas_logtype_t jas_logtype_init(int clas, int priority)
Create an instance of a logtype.
Definition: jas_log.h:122
JasPer Debugging-Related Functionality.
JAS_EXPORT int jas_logdebugf(int priority, const char *fmt,...)
Generate a debugging log message.
Definition: jas_debug.c:155
JAS_EXPORT int jas_vlogmsgf_stderr(jas_logtype_t type, const char *fmt, va_list ap)
Output a log message to standard error.
Definition: jas_debug.c:181
JAS_EXPORT int jas_vlogmsgf(jas_logtype_t type, const char *fmt, va_list ap)
Print formatted log message.
Definition: jas_debug.c:171
JAS_EXPORT int jas_logprintf(const char *fmt,...)
Generate a generic log message.
Definition: jas_debug.c:107
JAS_EXPORT void jas_set_debug_level(int debug_level)
Set the debug level for a particular context.
Definition: jas_init.c:1002
JAS_EXPORT int jas_loginfof(const char *fmt,...)
Generate an informational log message.
Definition: jas_debug.c:143
#define JAS_UNUSED(x)
Indicate that a variable may be unused (in order to avoid a compiler warning).
Definition: jas_compiler.h:145
#define JAS_LOGTYPE_CLASS_ERROR
Definition: jas_log.h:96
static int jas_logtype_getclass(jas_logtype_t type)
Get the class of a logtype.
Definition: jas_log.h:132
int jas_logmemdump(const void *data, size_t len)
Dump memory.
Definition: jas_debug.c:245
int() jas_vlogmsgf_t(jas_logtype_t, const char *, va_list)
Type used for formatted message logging function.
Definition: jas_log.h:117
Type used for the log type.
static JAS_DEPRECATED int jas_getdbglevel(void)
Get the library debug level.
Definition: jas_debug.h:123
JAS_EXPORT int jas_setdbglevel(int dbglevel)
Set the library debug level.
Definition: jas_debug.c:83
JAS_EXPORT void jas_deprecated(const char *fmt,...)
Warn about the use of deprecated functionality.
Definition: jas_debug.c:266
JAS_EXPORT int jas_vlogmsgf_discard(jas_logtype_t type, const char *fmt, va_list ap)
Output a log message to nowhere (i.e., discard the message).
Definition: jas_debug.c:218