WvLogRcv that sticks log messages in the wvcrash_ring_buffer.
More...
#include <wvcrashlog.h>
|
static const char * | loglevels [WvLog::NUM_LOGLEVELS] |
|
|
virtual void | _make_prefix (time_t now_sec) |
| Set the Prefix and Prefix Length (size_t prelen)
|
|
virtual void | _mid_line (const char *str, size_t len) |
| add text to the current log line.
|
|
virtual void | _make_prefix (time_t now_sec) |
| Set the Prefix and Prefix Length (size_t prelen)
|
|
virtual void | _mid_line (const char *str, size_t len) |
| add text to the current log line.
|
|
| DeclareWvScatterDict (Src_Lvl, WvString, src) |
|
| DeclareWvScatterDict (Src_Lvl, WvString, src) |
|
virtual void | _begin_line () |
| Start a new log line (print prefix)
|
|
virtual void | _begin_line () |
| Start a new log line (print prefix)
|
|
virtual void | _end_line () |
| End this (Guaranteed NonEmpty) log line.
|
|
virtual void | _end_line () |
| End this (Guaranteed NonEmpty) log line.
|
|
const char * | appname (WvStringParm log) const |
|
const char * | appname (WvStringParm log) const |
|
WvLogRcv that sticks log messages in the wvcrash_ring_buffer.
Definition at line 14 of file debian/libwvstreams-dev/usr/include/wvstreams/wvcrashlog.h.
◆ WvCrashLog()
WvCrashLog::WvCrashLog |
( |
WvLog::LogLevel |
_max_level = WvLog::NUM_LOGLEVELS | ) |
|
◆ _make_prefix() [1/2]
void WvCrashLog::_make_prefix |
( |
time_t |
now | ) |
|
|
protectedvirtual |
Set the Prefix and Prefix Length (size_t prelen)
Reimplemented from WvLogRcv.
Definition at line 22 of file wvcrashlog.cc.
◆ _mid_line() [1/2]
void WvCrashLog::_mid_line |
( |
const char * |
str, |
|
|
size_t |
len |
|
) |
| |
|
protectedvirtual |
add text to the current log line.
'str' may contain only one '
' optional character at str[len-1] (the end); if it does, end_line will be called immediately after this function.
Implements WvLogRcv.
Definition at line 16 of file wvcrashlog.cc.
◆ _make_prefix() [2/2]
virtual void WvCrashLog::_make_prefix |
( |
time_t |
now | ) |
|
|
protectedvirtual |
Set the Prefix and Prefix Length (size_t prelen)
Reimplemented from WvLogRcv.
◆ _mid_line() [2/2]
virtual void WvCrashLog::_mid_line |
( |
const char * |
str, |
|
|
size_t |
len |
|
) |
| |
|
protectedvirtual |
add text to the current log line.
'str' may contain only one '
' optional character at str[len-1] (the end); if it does, end_line will be called immediately after this function.
Implements WvLogRcv.
◆ _begin_line() [1/2]
void WvLogRcv::_begin_line |
( |
| ) |
|
|
protectedvirtualinherited |
◆ _begin_line() [2/2]
virtual void WvLogRcv::_begin_line |
( |
| ) |
|
|
protectedvirtualinherited |
◆ _end_line() [1/2]
void WvLogRcv::_end_line |
( |
| ) |
|
|
protectedvirtualinherited |
◆ _end_line() [2/2]
virtual void WvLogRcv::_end_line |
( |
| ) |
|
|
protectedvirtualinherited |
◆ log() [1/2]
void WvLogRcv::log |
( |
WvStringParm |
source, |
|
|
int |
loglevel, |
|
|
const char * |
_buf, |
|
|
size_t |
len |
|
) |
| |
|
virtualinherited |
◆ log() [2/2]
virtual void WvLogRcv::log |
( |
WvStringParm |
source, |
|
|
int |
loglevel, |
|
|
const char * |
_buf, |
|
|
size_t |
len |
|
) |
| |
|
virtualinherited |
◆ end_line() [1/2]
void WvLogRcv::end_line |
( |
| ) |
|
|
inlineinherited |
◆ end_line() [2/2]
void WvLogRcv::end_line |
( |
| ) |
|
|
inlineinherited |
◆ level() [1/4]
WvLog::LogLevel WvLogRcv::level |
( |
| ) |
const |
|
inlineinherited |
◆ level() [2/4]
void WvLogRcv::level |
( |
WvLog::LogLevel |
lvl | ) |
|
|
inlineinherited |
◆ level() [3/4]
WvLog::LogLevel WvLogRcv::level |
( |
| ) |
const |
|
inlineinherited |
◆ level() [4/4]
void WvLogRcv::level |
( |
WvLog::LogLevel |
lvl | ) |
|
|
inlineinherited |
◆ set_custom_levels()
bool WvLogRcv::set_custom_levels |
( |
WvString |
descr | ) |
|
|
inherited |
◆ appname()
const char * WvLogRcvBase::appname |
( |
WvStringParm |
log | ) |
const |
|
protectedinherited |
◆ last_source
◆ max_level
WvLog::LogLevel WvLogRcv::max_level |
|
protectedinherited |
◆ last_level
WvLog::LogLevel WvLogRcv::last_level |
|
protectedinherited |
◆ last_time
time_t WvLogRcv::last_time |
|
protectedinherited |
◆ at_newline
bool WvLogRcv::at_newline |
|
protectedinherited |
◆ prefix
◆ prelen
◆ custom_levels
Src_LvlDict WvLogRcv::custom_levels |
|
protectedinherited |
◆ loglevels
const char * WvLogRcv::loglevels |
|
staticinherited |
Initial value:= {
"Crit",
"Err",
"Warn",
"Notice",
"Info",
"*1",
"*2",
"*3",
"*4",
"*5",
}
Definition at line 24 of file debian/libwvstreams-dev/usr/include/wvstreams/wvlogrcv.h.
◆ force_new_line
bool WvLogRcvBase::force_new_line |
|
inherited |
The documentation for this class was generated from the following files: