The Main logger class. Assembles output lines and writes them to std::cout upon destruction.
More...
|
| 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) |
|
template<bool enabled>
class viennashe::log::logger< enabled >
The Main logger class. Assembles output lines and writes them to std::cout upon destruction.
- Template Parameters
-
enabled | If false the logger class does the same as the nullstream ... nothing |
Definition at line 75 of file log.hpp.