#include <log.hpp>
Public Member Functions | |
Log () | |
Standard constructor. | |
Log (bool) | |
Constructor. | |
~Log () | |
Standard destructor. | |
bool | getSilent () |
Set silence. | |
void | setSilent (bool) |
Set silence. | |
Log & | operator<< (const string &) |
Left shift operator. | |
Log & | operator<< (const char *) |
Left shift operator. | |
Log & | operator<< (const int &) |
Left shift operator. | |
Log & | operator<< (const float &) |
Left shift operator. | |
Log & | operator<< (const double &) |
Left shift operator. | |
Log & | operator<< (const timespec &) |
Left shift operator. | |
void | saveToFile (const char *) |
Saves the log in a file. | |
Protected Attributes | |
Mutex | mutex |
Mutex. | |
stringstream | sstream |
string stream as storage | |
bool | silent |
flag: if true content will also writen on the screen |
Definition at line 37 of file log.hpp.
|
Standard constructor. Definition at line 31 of file log.cpp. References silent. |
|
Constructor.
References silent. |
|
Standard destructor. |
|
Set silence.
References silent. |
|
Left shift operator. Inserts an item into the log.
|
|
Left shift operator. Inserts an item into the log.
|
|
Left shift operator. Inserts an item into the log.
|
|
Left shift operator. Inserts an item into the log.
|
|
Left shift operator. Inserts an item into the log.
|
|
Left shift operator. Inserts an item into the log.
|
|
Saves the log in a file. If the file already exist, the log content gets appended.
References mutex, and sstream. Referenced by PtfCore::run(). |
|
Set silence.
References silent. Referenced by PtfCore::run(). |
|
Mutex. Definition at line 52 of file log.hpp. Referenced by operator<<(), and saveToFile(). |
|
flag: if true content will also writen on the screen Definition at line 54 of file log.hpp. Referenced by getSilent(), Log(), operator<<(), and setSilent(). |
|
string stream as storage Definition at line 53 of file log.hpp. Referenced by operator<<(), and saveToFile(). |