From a84133850af6d348c0c4e252b26618148702153b Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 20 Sep 2007 13:24:20 +0000 Subject: Merged a bunch of small changes from trunk to 0.0 and set svn:eol-style to native for some files that were still missing this property. This is a feeble attempt to reduce the amount of conflicts for future merges. --- src/log.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/log.cpp') diff --git a/src/log.cpp b/src/log.cpp index 0d54a368..224736bd 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -35,6 +35,10 @@ #include #include +Logger::Logger(): + mLogToStandardOut(false) +{ +} Logger::~Logger() { @@ -92,6 +96,11 @@ void Logger::log(const char *log_text, ...) mLogFile << timeStr.str() << buf << std::endl; + if (mLogToStandardOut) + { + std::cout << timeStr.str() << buf << std::endl; + } + // Delete temporary buffer delete[] buf; } -- cgit v1.2.3-60-g2f50