plugin  0.1.0
Public Member Functions | List of all members
slog::LogStream Class Reference

The LogStream class implements a stream for sample logging. More...

#include <slog.hpp>

Public Member Functions

 LogStream (const std::string &prefix, std::ostream &log_stream)
 A constructor. Creates a LogStream object. More...
 
template<class T >
LogStreamoperator<< (const T &arg)
 A stream output operator to be used within the logger. More...
 
LogStreamoperator<< (const LogStreamEndLine &)
 
LogStreamoperator<< (const LogStreamBoolAlpha &)
 
template<template< class, class > class Container, class T >
LogStreamoperator<< (const Container< T, std::allocator< T >> &container)
 

Detailed Description

The LogStream class implements a stream for sample logging.

Constructor & Destructor Documentation

◆ LogStream()

slog::LogStream::LogStream ( const std::string &  prefix,
std::ostream &  log_stream 
)
inline

A constructor. Creates a LogStream object.

Parameters
prefixThe prefix to print

Member Function Documentation

◆ operator<<()

template<class T >
LogStream& slog::LogStream::operator<< ( const T &  arg)
inline

A stream output operator to be used within the logger.

Parameters
argObject for serialization in the logger message

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