diff --git a/test/testdevice/src/main.cpp b/test/testdevice/src/main.cpp
index 16ab44dbce054178690ba4e242bb6bf2f1649110..b9c6d57292062a87ca4690b711a004ba1371ff80 100644
--- a/test/testdevice/src/main.cpp
+++ b/test/testdevice/src/main.cpp
@@ -20,6 +20,15 @@
 
 #include <tango/tango.h>
 
+#ifndef TANGO_LOG
+#define TANGO_LOG cout
+#endif
+#ifndef TANGO_LOG_INFO
+#define TANGO_LOG_INFO cout2
+#endif
+#ifndef TANGO_LOG_DEBUG
+#define TANGO_LOG_DEBUG cout4
+#endif
 
 int main(int argc,char *argv[])
 {