6 #ifndef __WVLOGBUFFER_H
7 #define __WVLOGBUFFER_H
10 #include "wvhashtable.h"
25 WvLog::LogLevel level;
28 Msg(WvLog::LogLevel _level, WvStringParm _source,
WvString _message);
41 Msg* add(
Msg* msg,
int max);
58 MsgCounterDict counters;
62 void handle_msg(
Msg *lastmsg);
65 virtual void _mid_line(
const char *str,
size_t len);
70 WvLog::LogLevel _max_level = WvLog::NUM_LOGLEVELS);
74 { end_line();
return msgs; }
76 void feed_receiver(
WvLogRcv& receiver);
81 #endif // __WVLOGBUFFER_H
virtual void _begin_line()
Start a new log line (print prefix)
virtual void _mid_line(const char *str, size_t len)
add text to the current log line.
WvString is an implementation of a simple and efficient printable-string class.
WvLogRcv adds some intelligence to WvLogRcvBase, to keep track of line-prefix-printing and other form...
Unified support for streams, that is, sequences of bytes that may or may not be ready for read/write ...
WvLogBuffer is a descendant of WvLogRcv that buffers log messages for later use.
virtual void _end_line()
End this (Guaranteed NonEmpty) log line.