OpenWalnut  1.5.0dev
Public Member Functions | Public Attributes | List of all members
wlog::WStreamedLogger::Buffer Class Reference

Actually implementing the streaming functionality. More...

+ Collaboration diagram for wlog::WStreamedLogger::Buffer:

Public Member Functions

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

Public Attributes

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

Detailed Description

Actually implementing the streaming functionality.

Definition at line 222 of file WLogger.h.

Constructor & Destructor Documentation

◆ Buffer()

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.

◆ ~Buffer()

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.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_level

LogLevel wlog::WStreamedLogger::Buffer::m_level

Default logging level for this stream.

Definition at line 239 of file WLogger.h.

Referenced by ~Buffer().

◆ m_logString

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

queuing up parts of the log message

Definition at line 238 of file WLogger.h.

Referenced by ~Buffer().

◆ m_source

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

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: