diff --git a/test/testdevice/src/TestDevice.h b/test/testdevice/src/TestDevice.h
index 905e420f65366e3253fc9df9cd02ae9d87ade435..633650d3090f29cf658483fdf4e01429f471d6e6 100644
--- a/test/testdevice/src/TestDevice.h
+++ b/test/testdevice/src/TestDevice.h
@@ -23,6 +23,16 @@
 #define MAX_ATTR_SIZE 3000
 #define MAX_SPECTRUM_SIZE	100
 
+#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
+
 /*----- PROTECTED REGION END -----*/
 
 
diff --git a/test/testdevice/src/TestDeviceClass.h b/test/testdevice/src/TestDeviceClass.h
index 7c9d5394605db7f1237c6af2a4db4a5acac157a8..5bf706dc2e2e24d1dad2b88b7a88b0772d56c9e5 100644
--- a/test/testdevice/src/TestDeviceClass.h
+++ b/test/testdevice/src/TestDeviceClass.h
@@ -25,6 +25,16 @@
 #include <tango/tango.h>
 #include <TestDevice.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
+
 /*----- PROTECTED REGION END -----*/
 
 namespace TestDevice_ns