The Main logger class. Assembles output lines and writes them to std::cout upon destruction. More...
#include <log.hpp>
Public Types | |
typedef std::ostream &(* | ostream_manipulator) (std::ostream &) |
Public Member Functions | |
logger () | |
logger (log_levels level) | |
logger (const std::string &component_name) | |
CTOR to log componentwise. Adds [component_name] to the start of every log-line. More... | |
logger (log_levels level, const std::string &component_name) | |
CTOR to log componentwise on a certain log-level. Adds [component_name] to the start of every log-line. More... | |
logger (const logger &r) | |
~logger () | |
Destructor. Does actually write the log-message to the output-stream (normally std::cout) More... | |
bool | do_log () const |
Returns true if the log-level is smaller than the globally set one. More... | |
CollectorStreamType & | get () |
Returns the collector stream to collect the output. More... | |
CollectorStreamType const & | get () const |
Returns the collector stream to collect the output. More... | |
template<typename T > | |
CollectorStreamType & | operator<< (const T &x) |
Generic shift left operator to print stuff via the logger. More... | |
CollectorStreamType & | operator<< (ostream_manipulator pf) |
CollectorStreamType & | operator<< (std::string &x) |
CollectorStreamType & | operator<< (const std::string &x) |
CollectorStreamType & | operator<< (const char *x) |
CollectorStreamType & | operator<< (logger &r) |
The Main logger class. Assembles output lines and writes them to std::cout upon destruction.
enabled | If false the logger class does the same as the nullstream ... nothing |
typedef std::ostream &(* viennashe::log::logger< enabled >::ostream_manipulator) (std::ostream &) |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |