10#include "wvhashtable.h"
25 WvLog::LogLevel level;
26 WvString source, message;
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);
69 WvLogBuffer(
int _max_lines,
70 WvLog::LogLevel _max_level = WvLog::NUM_LOGLEVELS);
71 virtual ~WvLogBuffer();
74 { end_line();
return msgs; }
76 void feed_receiver(
WvLogRcv& receiver);
WvLogBuffer is a descendant of WvLogRcv that buffers log messages for later use.
virtual void _mid_line(const char *str, size_t len)
add text to the current log line.
virtual void _end_line()
End this (Guaranteed NonEmpty) log line.
virtual void _begin_line()
Start a new log line (print prefix).
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 ...