diff --git a/tests/debug-logger.cpp b/tests/debug-logger.cpp
index 447df8312a6e4776f2454f38bbc6ab90f67142c3..c00f055f38aa02011612e545589ffb36bef322a9 100644
--- a/tests/debug-logger.cpp
+++ b/tests/debug-logger.cpp
@@ -68,6 +68,7 @@ namespace dynamicgraph
 BOOST_AUTO_TEST_CASE(debug_logger)
 {
   std::ofstream of;
+  dynamicgraph::RealTimeLogger::instance();
   of.open("/tmp/dg-LOGS.txt",std::ofstream::out|std::ofstream::app); 
   dgADD_OSTREAM_TO_RTLOG (of);
   
@@ -81,6 +82,8 @@ BOOST_AUTO_TEST_CASE(debug_logger)
     {
       entity.testDebugTrace();
     }
-  
+
+  dynamicgraph::RealTimeLogger::destroy();
 }
 
+