32 #include "wvlogbuffer.h"
38 WvLog a(
"logA", WvLog::Debug), b(
"logB", WvLog::Debug2);
39 WvLog c(
"logC", WvLog::Debug3), c2 = c.
split(WvLog::Debug4);
43 c(
"c message with extra newline\n\n\n");
47 a(WvLog::Info,
"a info message\n");
48 a(
"a normal message with \a\b control chars\r\n");
55 b(WvLog::Info,
"and other stuff.\n");
59 c2(WvLog::Debug3,
"message.");
65 c2(WvLog::Debug3,
" .. and it's wonky! \n");
WvLogBuffer is a descendant of WvLogRcv that buffers log messages for later use.
A WvLog stream accepts log messages from applications and forwards them to all registered WvLogRcv's.
WvLog split(LogLevel _loglevel) const
split off a new WvLog object with the requested loglevel.