30 #define LWGEOM_LOG_H 1 37 #if POSTGIS_DEBUG_LEVEL > 0 40 #define LWDEBUG(level, msg) \ 42 if (POSTGIS_DEBUG_LEVEL >= level) \ 43 lwdebug(level, "[%s:%s:%d] " msg, __FILE__, __func__, __LINE__); \ 48 #define LWDEBUGF(level, msg, ...) \ 50 if (POSTGIS_DEBUG_LEVEL >= level) \ 51 lwdebug(level, "[%s:%s:%d] " msg, \ 52 __FILE__, __func__, __LINE__, __VA_ARGS__); \ 57 #define LWDEBUGG(level, geom, msg) \ 58 if (POSTGIS_DEBUG_LEVEL >= level) \ 61 char *wkt = lwgeom_to_wkt(geom, WKT_EXTENDED, 15, &sz); \ 63 LWDEBUGF(level, msg ": %s", wkt); \ 69 #define LWDEBUGGF(level, geom, fmt, ...) \ 70 if (POSTGIS_DEBUG_LEVEL >= level) \ 73 char *wkt = lwgeom_to_wkt(geom, WKT_EXTENDED, 15, &sz); \ 75 LWDEBUGF(level, fmt ": %s", __VA_ARGS__, wkt); \ 83 #define LWDEBUG(level, msg) \ 88 #define LWDEBUGF(level, msg, ...) \ 93 #define LWDEBUGG(level, geom, msg) \ 98 #define LWDEBUGGF(level, geom, fmt, ...) \ 130 void lwdebug(
int level,
const char *
fmt, ...);
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
void lwdebug(int level, const char *fmt,...)
Write a debug message out.
void lwerror(const char *fmt,...)
Write a notice out to the error handler.