Support Class Library
A set of tools providing classes and utility
|
Logging funtions with prefixes. More...
Functions | |
template<class T = std::string> | |
std::function< decltype(std::cout)&(const T &)> | log (const char *const prefix) |
Log for the given type on stdout w/ a prefix and end with a line break. More... | |
template<class T = std::string> | |
std::function< decltype(std::cerr)&(const T &)> | error (const char *const prefix) |
Log for the given type on stderr w/ a prefix and end with a line break. More... | |
Logging funtions with prefixes.
|
inline |
Log for the given type on stderr w/ a prefix and end with a line break.
T | being the type of objects to log |
prefix | being the prefix |
Definition at line 39 of file prefixed.h.
|
inline |
Log for the given type on stdout w/ a prefix and end with a line break.
T | being the type of objects to log |
prefix | being the prefix |
Definition at line 25 of file prefixed.h.