7 #include "streamlog/logstream.h"
20 std::streambuf* _sbuf ;
41 static bool hasNewLine = true ;
48 if ( hasNewLine ==
true ) {
50 std::string pre = (* _ls->
prefix() )() ;
52 success &= ( (unsigned) _sbuf->sputn( pre.c_str() , pre.size() ) == pre.size() ) ;
61 success &= ( _sbuf->sputc(c) != EOF ) ;
Definition: logbuffer.h:18
Namespace of method for logging messages based on streamlog.
Definition: baselevels.h:20
virtual int overflow(int c=EOF)
Definition: logbuffer.h:39
prefix_base * prefix()
Definition: logstream.h:130
Definition: logstream.h:52