diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-09-20 13:24:20 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-09-20 13:24:20 +0000 |
commit | a84133850af6d348c0c4e252b26618148702153b (patch) | |
tree | f4b8d7c9bbdeecd9c1976bdc3d3806909a25cd28 /src/log.cpp | |
parent | 1afcf2608c0a466d2df21faea1530955cc8061fc (diff) | |
download | mana-a84133850af6d348c0c4e252b26618148702153b.tar.gz mana-a84133850af6d348c0c4e252b26618148702153b.tar.bz2 mana-a84133850af6d348c0c4e252b26618148702153b.tar.xz mana-a84133850af6d348c0c4e252b26618148702153b.zip |
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.
Diffstat (limited to 'src/log.cpp')
-rw-r--r-- | src/log.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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 <iostream> #include <sstream> +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; } |