10 explicit Logger(std::ostream& os,
bool active =
true) : m_os(os), m_indent(0), m_active(active) {}
16 for (
size_t i = 0; i < m_indent; ++i) {
24 if (m_active) m_os << std::endl;
39 if (log.m_active) log.m_os << op;
void increase_indent()
Definition: logger.h:11
friend Logger & operator<<(Logger &, const T &)
Logger(std::ostream &os, bool active=true)
Definition: logger.h:10
Logger & newline()
Definition: logger.h:23
void decrease_indent()
Definition: logger.h:12
Logger & indent()
Definition: logger.h:14