20 virtual void log(std::string_view buf) = 0;
65 return this->operator<< <const char*> (
"(null)");
67 return this->operator<< <T>(std::forward<T>(arg));
74#define ADD_NULL_CHECK(_type) \
75 StreamProxy& operator<<(_type arg) \
77 return emit_with_null_check(std::forward<_type>(arg)); \
143 sp << std::forward<T>(arg);
161 operator std::ostream&() {
200#define TRACESTREAM(x) do { \
StreamProxy & operator<<(std::ostream &(*manip)(std::ostream &))
Definition log.h:147
std::ostream m_dummy_stream
Definition log.h:172
LogStream(LogTarget &target)
Definition log.h:131
StreamProxy m_dummy_proxy
Definition log.h:174
std::ostream m_stream
Definition log.h:171
StreamProxy & operator<<(T &&arg)
Definition log.h:141
LogTarget & m_target
Definition log.h:168
DummyStreamBuffer m_dummy_buffer
Definition log.h:170
StreamProxy m_proxy
Definition log.h:173
StringStreamBuffer< BUFFER_LENGTH > m_buffer
Definition log.h:169
DISABLE_CLASS_COPY(LogStream)
void internalFlush(std::string_view buf)
Definition log.h:157
static const int BUFFER_LENGTH
Definition log.h:167
virtual bool hasOutput()=0
virtual void log(std::string_view buf)=0
StreamProxy & operator<<(T &&arg)
Definition log.h:38
std::ostream * m_os
Definition log.h:90
static void fix_stream_state(std::ostream &os)
Definition log.cpp:359
StreamProxy & emit_with_null_check(T &&arg)
Definition log.h:60
StreamProxy & operator<<(std::ostream &(*manip)(std::ostream &))
Definition log.h:48
StreamProxy(std::ostream *os)
Definition log.h:33
#define ADD_NULL_CHECK(_type)
Definition log.h:74
thread_local LogStream infostream
thread_local LogStream errorstream
thread_local LogStream actionstream
thread_local LogStream derr_con
thread_local LogStream dstream
thread_local LogStream tracestream
thread_local LogStream rawstream
thread_local LogStream warningstream
thread_local LogStream verbosestream
thread_local LogStream dout_con