Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Private Attributes | List of all members
WsLogger Class Reference

Logger used in FsDaemon. More...

#include <WsLogger.h>

Collaboration diagram for WsLogger:
Collaboration graph

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
 

Detailed Description

Logger used in FsDaemon.

Definition at line 47 of file WsLogger.h.

Constructor & Destructor Documentation

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.

Here is the call graph for this function:

Member Function Documentation

stringstream & WsLogger::log ( int  level = 1)

append the text to the stream. On each object destruction, the text will be written in the log

Parameters
levellog level (DEBUG, INFO, WARN, ERROR)

Definition at line 27 of file WsLogger.cpp.

Member Data Documentation

int WsLogger::m_level
private

Definition at line 67 of file WsLogger.h.

std::stringstream WsLogger::m_ss
private

Definition at line 66 of file WsLogger.h.


The documentation for this class was generated from the following files: