The LogStream class implements a stream for sample logging.
More...
#include <slog.hpp>
The LogStream class implements a stream for sample logging.
◆ LogStream()
slog::LogStream::LogStream |
( |
const std::string & |
prefix, |
|
|
std::ostream & |
log_stream |
|
) |
| |
|
inline |
A constructor. Creates a LogStream object.
- Parameters
-
prefix | The prefix to print |
◆ operator<<()
template<class T >
LogStream& slog::LogStream::operator<< |
( |
const T & |
arg | ) |
|
|
inline |
A stream output operator to be used within the logger.
- Parameters
-
arg | Object for serialization in the logger message |
The documentation for this class was generated from the following file: