Support Class Library
A set of tools providing classes and utility
Namespaces | Functions
scl::tools::iostream::log Namespace Reference

Logging utilities. More...

Namespaces

 prefixed
 Logging funtions with prefixes.
 
 surrounded
 Logging utils but with both prefix and suffix.
 
 wrap
 Alias for scl::tools::iostream::log::surrounded.
 

Functions

template<class T = std::string>
decltype(std::cout) & log (T &&value)
 Output a value on stdout and terminate with a line break. More...
 
template<class T = std::string>
decltype(std::cerr) & error (T &&value)
 Output a value on stderr and terminate with a line break. More...
 

Detailed Description

Logging utilities.

Function Documentation

◆ error()

template<class T = std::string>
decltype(std::cerr) & scl::tools::iostream::log::error ( T &&  value)
inline

Output a value on stderr and terminate with a line break.

Returns
a reference to std::cerr

Definition at line 25 of file basic.h.

◆ log()

template<class T = std::string>
decltype(std::cout) & scl::tools::iostream::log::log ( T &&  value)
inline

Output a value on stdout and terminate with a line break.

Returns
a reference to std::cout

Definition at line 16 of file basic.h.