WvLogRcv adds some intelligence to WvLogRcvBase, to keep track of line-prefix-printing and other formatting information.
More...
#include <wvlogrcv.h>
|
virtual void | log (WvStringParm source, int loglevel, const char *_buf, size_t len) |
|
| WvLogRcv (WvLog::LogLevel _max_level=WvLog::NUM_LOGLEVELS) |
|
void | end_line () |
|
WvLog::LogLevel | level () const |
|
void | level (WvLog::LogLevel lvl) |
|
bool | set_custom_levels (WvString descr) |
|
|
static const char * | loglevels [WvLog::NUM_LOGLEVELS] |
|
|
| DeclareWvScatterDict (Src_Lvl, WvString, src) |
|
virtual void | _make_prefix (time_t now) |
| Set the Prefix and Prefix Length (size_t prelen)
|
|
virtual void | _begin_line () |
| Start a new log line (print prefix)
|
|
virtual void | _end_line () |
| End this (Guaranteed NonEmpty) log line.
|
|
virtual void | _mid_line (const char *str, size_t len)=0 |
| add text to the current log line. More...
|
|
const char * | appname (WvStringParm log) const |
|
|
WvString | last_source |
|
WvLog::LogLevel | max_level |
|
WvLog::LogLevel | last_level |
|
time_t | last_time |
|
bool | at_newline |
|
WvString | prefix |
|
size_t | prelen |
|
Src_LvlDict | custom_levels |
|
WvLogRcv adds some intelligence to WvLogRcvBase, to keep track of line-prefix-printing and other formatting information.
Definition at line 28 of file wvlogrcv.h.
◆ _mid_line()
virtual void WvLogRcv::_mid_line |
( |
const char * |
str, |
|
|
size_t |
len |
|
) |
| |
|
protectedpure virtual |
◆ loglevels
const char * WvLogRcv::loglevels |
|
static |
Initial value:= {
"Crit",
"Err",
"Warn",
"Notice",
"Info",
"*1",
"*2",
"*3",
"*4",
"*5",
}
Definition at line 78 of file wvlogrcv.h.
The documentation for this class was generated from the following files: