From 22224ad793315136253f9e2d22aec3cb0e34dd77 Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Mon, 8 Nov 2010 22:58:37 +0100 Subject: [PATCH] default log output to debug for the ostream monitor ; better documentation --- eo/src/utils/eoOStreamMonitor.cpp | 4 ++-- eo/src/utils/eoOStreamMonitor.h | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/eo/src/utils/eoOStreamMonitor.cpp b/eo/src/utils/eoOStreamMonitor.cpp index f47096d0..3a29dd68 100644 --- a/eo/src/utils/eoOStreamMonitor.cpp +++ b/eo/src/utils/eoOStreamMonitor.cpp @@ -25,7 +25,7 @@ eoMonitor& eoOStreamMonitor::operator()(void) if (firsttime) { - eo::log << eo::progress << "First Generation" << std::endl; + eo::log << eo::debug << "First Generation" << std::endl; for (iterator it = vec.begin (); it != vec.end (); ++it) { out << (*it)->longName (); @@ -52,7 +52,7 @@ eoMonitor& eoOStreamMonitor::operator()(void) } // for it in vec out << std::endl; - eo::log << eo::progress << "End of Generation" << std::endl; + eo::log << eo::debug << "End of Generation" << std::endl; return *this; } diff --git a/eo/src/utils/eoOStreamMonitor.h b/eo/src/utils/eoOStreamMonitor.h index 70d85bf7..8f44677c 100644 --- a/eo/src/utils/eoOStreamMonitor.h +++ b/eo/src/utils/eoOStreamMonitor.h @@ -36,7 +36,9 @@ Authors: #include /** - Prints statistics to stdout + Prints statistics to a given ostream. + + You can pass any instance of an ostream to the constructor, like, for example, std::clog. @ingroup Monitors */