10#include "wvhashtable.h"
17class WvLogBuffer :
public WvLogRcv
25 WvLog::LogLevel level;
28 Msg(WvLog::LogLevel _level, WvStringParm _source,
WvString _message);
40 MsgCounter(
WvString _src_lvl) : src_lvl(_src_lvl) {};
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);
78 void dump(WvStream &s);
WvLogBuffer is a descendant of WvLogRcv that buffers log messages for later use.
virtual void _end_line()
End this (Guaranteed NonEmpty) log line.
virtual void _mid_line(const char *str, size_t len)
add text to the current log line.
virtual void _begin_line()
Start a new log line (print prefix).
WvString is an implementation of a simple and efficient printable-string class.