logger
Public Member Functions | List of all members
logger::Line Class Reference

Allows piping content in order to build a log message. Once the object is destroyed, the piped content will be logged to the appropriate outputs. More...

#include <line.hpp>

Public Member Functions

 ~Line ()
 Logs all contents previously piped into the object to the outputs.
 
template<class T >
Line & operator<< (T value)
 Add content to the log message. More...
 

Detailed Description

Allows piping content in order to build a log message. Once the object is destroyed, the piped content will be logged to the appropriate outputs.

Member Function Documentation

◆ operator<<()

template<class T >
Line& logger::Line::operator<< ( T  value)
inline

Add content to the log message.

Template Parameters
TAny type accepted by a std::ostream.
Parameters
valueThe content to add to the message.
Returns
A reference to this Line object, allowing for continuous piping.

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