37 #define PAUSE_READLINE() \
38 rdln::suspend_readline pause_readline;
40 #define PAUSE_READLINE()
53 std::stringstream m_oss;
67 , m_log_level(log_level)
73 : m_flush(std::
move(rhs.m_flush))
75 , m_oss(std::
move(rhs.m_oss))
78 , m_oss(rhs.m_oss.str(), std::ios_base::out | std::ios_base::ate)
80 , m_color(std::
move(rhs.m_color))
81 , m_log_level(std::
move(rhs.m_log_level))
103 MCLOG_FILE(m_log_level,
"msgwriter", m_oss.str());
108 std::cout << m_oss.str();
113 std::cout << m_oss.str();
116 std::cout << std::endl;
#define MCLOG_FILE(level, cat, x)
Level
Represents enumeration for severity level used to determine level of logging.
@ Info
Mainly useful to represent current progress of application.
@ Error
Information representing errors in application but application will keep running.
void set_console_color(int color, bool bright)
void reset_console_color()
const T & move(const T &t)