diff --git a/core/util/Logger.cc b/core/util/Logger.cc index a2271c46..3a743c58 100644 --- a/core/util/Logger.cc +++ b/core/util/Logger.cc @@ -1,6 +1,3 @@ -// Author: Adrian Böckenkamp -// Date: 21.11.2011 - #include #include #include diff --git a/core/util/Logger.hpp b/core/util/Logger.hpp index 9f0f57b9..c5503c26 100644 --- a/core/util/Logger.hpp +++ b/core/util/Logger.hpp @@ -1,9 +1,6 @@ #ifndef __LOGGER_HPP__ #define __LOGGER_HPP__ -// Author: Adrian Böckenkamp -// Date: 21.11.2011 - #include #include @@ -39,6 +36,15 @@ class Logger { m_description = descr; } + /** + * Change the default option of show_time which shows a timestamp + * each log entry. + * @param choice The choice for show_time + */ + void showTime(bool choice) + { + m_showTime = choice; + } /** * Add a new log entry. Returns a std::ostream reference to continue * streaming a longer log entry.