OpenWalnut  1.2.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
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 216 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 266 of file WLogger.h.

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

Commits the logging expression to our WLogger.

Definition at line 121 of file WLogger.cpp.

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


Member Data Documentation

LogLevel wlog::WStreamedLogger::Buffer::m_level

Default logging level for this stream.

Definition at line 233 of file WLogger.h.

Referenced by ~Buffer().

std::ostringstream wlog::WStreamedLogger::Buffer::m_logString

queuing up parts of the log message

Definition at line 232 of file WLogger.h.

Referenced by ~Buffer().

std::string wlog::WStreamedLogger::Buffer::m_source

The source of the logging message.

Definition at line 234 of file WLogger.h.

Referenced by ~Buffer().


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