diff --git a/include/Application.h b/include/Application.h
index 35f91eb9c65ca65730a4f176baccff0f4a659ef0..17fc025548e6427aa80e9051a6a38aba18ad4c74 100644
--- a/include/Application.h
+++ b/include/Application.h
@@ -68,7 +68,7 @@ namespace ChimeraTK {
     /** Output the connections requested in the initialise() function to
      * std::cout. This may be done also before
      *  makeConnections() has been called. */
-    void dumpConnections();
+    void dumpConnections(std::ostream& stream = std::cout);
 
     /** Create Graphviz dot graph and write to file. The graph will contain the
      * connections made in the initilise() function. @see dumpConnections */
diff --git a/src/Application.cc b/src/Application.cc
index 9963fa2b5d00417f0c31f537dcac176494aac7b2..866cf74d55fae76e5e73d67c6a5ee555316139da 100644
--- a/src/Application.cc
+++ b/src/Application.cc
@@ -633,12 +633,12 @@ void Application::optimiseConnections() {
 
 /*********************************************************************************************************************/
 
-void Application::dumpConnections() {                                                                // LCOV_EXCL_LINE
-  std::cout << "==== List of all variable connections of the current Application ====" << std::endl; // LCOV_EXCL_LINE
+void Application::dumpConnections(std::ostream& stream) {                                            // LCOV_EXCL_LINE
+  stream << "==== List of all variable connections of the current Application ====" << std::endl;    // LCOV_EXCL_LINE
   for(auto& network : networkList) {                                                                 // LCOV_EXCL_LINE
-    network.dump();                                                                                  // LCOV_EXCL_LINE
+    network.dump("", stream);                                                                        // LCOV_EXCL_LINE
   }                                                                                                  // LCOV_EXCL_LINE
-  std::cout << "=====================================================================" << std::endl; // LCOV_EXCL_LINE
+  stream << "=====================================================================" << std::endl;    // LCOV_EXCL_LINE
 } // LCOV_EXCL_LINE
 
 void Application::dumpConnectionGraph(const std::string& fileName) {