CMR
1.3.0
|
#include <logger.hpp>
Public Member Functions | |
logger (log_level level) | |
virtual | ~logger () |
log_level | level () const |
bool | is_quiet () const |
bool | is_verbose () const |
bool | is_progressive () const |
void | indent (size_t amount=1) |
void | unindent (size_t amount=1) |
void | clear () |
size_t | size () const |
void | erase (size_t position) |
std::stringstream & | line () |
const std::stringstream & | line () const |
Friends | |
std::ostream & | operator<< (std::ostream &, logger &) |
Stream operator. More... | |
This class manages the logging behaviour of the library. There are three level:
tu::logger::logger | ( | log_level | level | ) |
Creates a logger object.
level | The log level to work with |
|
virtual |
Destructor
|
inline |
Clears the current line.
|
inline |
Erases a portion from the current line.
position | Position from which to erase |
|
inline |
Increases the indent of current and further lines.
amount | Number of spaces to increase |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Decreases the indent of current and further lines.
amount | Number of space to decrease |
|
friend |
Stream operator.
Streams a line of a logger object and flushes the output stream.
Output | stream |
Logger | object |