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:
@ -1,6 +1,3 @@
|
|||||||
// Author: Adrian Böckenkamp
|
|
||||||
// Date: 21.11.2011
|
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|||||||
@ -1,9 +1,6 @@
|
|||||||
#ifndef __LOGGER_HPP__
|
#ifndef __LOGGER_HPP__
|
||||||
#define __LOGGER_HPP__
|
#define __LOGGER_HPP__
|
||||||
|
|
||||||
// Author: Adrian Böckenkamp
|
|
||||||
// Date: 21.11.2011
|
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
@ -39,6 +36,15 @@ class Logger
|
|||||||
{
|
{
|
||||||
m_description = descr;
|
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
|
* Add a new log entry. Returns a std::ostream reference to continue
|
||||||
* streaming a longer log entry.
|
* streaming a longer log entry.
|
||||||
|
|||||||
Reference in New Issue
Block a user