Wittyshare
0.2
|
Logger used in FsDaemon. More...
#include <WsLogger.h>
Public Member Functions | |
WsLogger () | |
constructor More... | |
std::stringstream & | log (int level=1) |
append the text to the stream. On each object destruction, the text will be written in the log More... | |
~WsLogger () | |
destructor writes the text to the file More... | |
Private Attributes | |
std::stringstream | m_ss |
int | m_level |
Logger used in FsDaemon.
Definition at line 47 of file WsLogger.h.
WsLogger::WsLogger | ( | ) |
constructor
Definition at line 17 of file WsLogger.cpp.
WsLogger::~WsLogger | ( | ) |
destructor writes the text to the file
Definition at line 22 of file WsLogger.cpp.
stringstream & WsLogger::log | ( | int | level = 1 | ) |
append the text to the stream. On each object destruction, the text will be written in the log
level | log level (DEBUG, INFO, WARN, ERROR) |
Definition at line 27 of file WsLogger.cpp.
|
private |
Definition at line 67 of file WsLogger.h.
|
private |
Definition at line 66 of file WsLogger.h.