DotNameLib
Loading...
Searching...
No Matches
dotnamecpp::logging::LogStream Class Reference

Helper class for streaming log messages. More...

#include <ILogger.hpp>

Collaboration diagram for dotnamecpp::logging::LogStream:

Public Member Functions

 LogStream (std::shared_ptr< ILogger > logger, Level level, std::string caller)
 ~LogStream ()
 Destroy the Log Stream:: Log Stream object.
template<typename T>
LogStreamoperator<< (const T &value)
 Stream a value into the log message.
LogStreamoperator<< (std::ostream &(*manip)(std::ostream &))
 Stream a manipulator into the log message (e.g., std::endl)

Detailed Description

Helper class for streaming log messages.

Constructor & Destructor Documentation

◆ LogStream()

dotnamecpp::logging::LogStream::LogStream ( std::shared_ptr< ILogger > logger,
Level level,
std::string caller )
inline
Here is the caller graph for this function:

◆ ~LogStream()

dotnamecpp::logging::LogStream::~LogStream ( )
inline

Destroy the Log Stream:: Log Stream object.

Member Function Documentation

◆ operator<<() [1/2]

template<typename T>
LogStream & dotnamecpp::logging::LogStream::operator<< ( const T & value)
inline

Stream a value into the log message.

Template Parameters
T
Parameters
value
Returns
LogStream&
Here is the call graph for this function:

◆ operator<<() [2/2]

LogStream & dotnamecpp::logging::LogStream::operator<< ( std::ostream &(* manip )(std::ostream &))
inline

Stream a manipulator into the log message (e.g., std::endl)

Parameters
manip
Returns
LogStream&
Here is the call graph for this function:

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