showTime-method added to Logger

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1239 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hellwig
2012-05-16 14:30:50 +00:00
parent 0d32dac7c3
commit 7355256bdb
2 changed files with 9 additions and 6 deletions

View File

@ -1,6 +1,3 @@
// Author: Adrian Böckenkamp
// Date: 21.11.2011
#include <sstream>
#include <fstream>
#include <cassert>

View File

@ -1,9 +1,6 @@
#ifndef __LOGGER_HPP__
#define __LOGGER_HPP__
// Author: Adrian Böckenkamp
// Date: 21.11.2011
#include <iostream>
#include <sstream>
@ -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.