Go to the documentation of this file.
75 #include <jasper/jas_config.h>
94 #define JAS_LOGTYPE_CLASS_NULL 0
96 #define JAS_LOGTYPE_CLASS_ERROR 1
98 #define JAS_LOGTYPE_CLASS_WARN 2
100 #define JAS_LOGTYPE_CLASS_INFO 3
102 #define JAS_LOGTYPE_CLASS_DEBUG 4
103 #define JAS_LOGTYPE_NUM_CLASSES 5
105 #define JAS_LOGTYPE_MAX_PRIORITY 16384
124 assert(clas >= 0 && clas < JAS_LOGTYPE_NUM_CLASSES);
125 assert(priority >= 0 && priority <= JAS_LOGTYPE_MAX_PRIORITY);
126 return (clas & 0xf) | (priority << 4);
static jas_logtype_t jas_logtype_init(int clas, int priority)
Create an instance of a logtype.
Definition: jas_log.h:122
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
static int jas_logtype_getpriority(jas_logtype_t type)
Get the priority of a logtype.
Definition: jas_log.h:140
static int jas_logtype_getclass(jas_logtype_t type)
Get the class of a logtype.
Definition: jas_log.h:132
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.
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