OpenWalnut 1.3.1
Public Member Functions | Public Attributes
wlog::WStreamedLogger::Buffer Class Reference

Actually implementing the streaming functionality. More...

List of all members.

Public Member Functions

 Buffer (const std::string &source, LogLevel level)
 Constructs a new stream for logging.
virtual ~Buffer ()
 Commits the logging expression to our WLogger.

Public Attributes

std::ostringstream m_logString
 queuing up parts of the log message
LogLevel m_level
 Default logging level for this stream.
std::string m_source
 The source of the logging message.

Detailed Description

Actually implementing the streaming functionality.

Definition at line 222 of file WLogger.h.


Constructor & Destructor Documentation

wlog::WStreamedLogger::Buffer::Buffer ( const std::string &  source,
LogLevel  level 
) [inline]

Constructs a new stream for logging.

Parameters:
sourceString identifying the source of the message
levelLogLevel of the message

Definition at line 272 of file WLogger.h.

wlog::WStreamedLogger::Buffer::~Buffer ( ) [virtual]

Commits the logging expression to our WLogger.

Definition at line 126 of file WLogger.cpp.

References WLogger::addLogMessage(), WLogger::getLogger(), m_level, m_logString, and m_source.


Member Data Documentation

Default logging level for this stream.

Definition at line 239 of file WLogger.h.

Referenced by ~Buffer().

queuing up parts of the log message

Definition at line 238 of file WLogger.h.

Referenced by ~Buffer().

The source of the logging message.

Definition at line 240 of file WLogger.h.

Referenced by ~Buffer().


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