summaryrefslogtreecommitdiff
path: root/src/logger.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/logger.h')
-rw-r--r--src/logger.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/logger.h b/src/logger.h
index 66e5d0ea7..e26d3e6e6 100644
--- a/src/logger.h
+++ b/src/logger.h
@@ -38,6 +38,23 @@
#define DEBUGLOG(msg) {}
#endif
+#ifdef ENABLEDEBUGLOG
+#define DEBUGLOG2(msg, comment) \
+ if (logger) \
+ { \
+ if (comment) \
+ { \
+ logger->dlog(std::string(msg).append(": ").append(comment)); \
+ } \
+ else \
+ { \
+ logger->dlog(msg); \
+ } \
+ }
+#else
+#define DEBUGLOG(msg) {}
+#endif
+
/**
* The Log Class : Useful to write debug or info messages
*/