WvSyslog is a descendant of WvLogRcv that sends messages to the syslogd daemon.
More...
#include <wvsyslog.h>
|
static const char * | loglevels [WvLog::NUM_LOGLEVELS] |
|
WvSyslog is a descendant of WvLogRcv that sends messages to the syslogd daemon.
Definition at line 15 of file wvsyslog.h.
◆ WvSyslog()
WvSyslog::WvSyslog |
( |
WvStringParm |
_prefix, |
|
|
bool |
_include_appname, |
|
|
WvLog::LogLevel |
_first_debug = WvLog::Debug , |
|
|
WvLog::LogLevel |
_max_level = WvLog::NUM_LOGLEVELS |
|
) |
| |
◆ ~WvSyslog()
◆ _begin_line()
void WvSyslog::_begin_line |
( |
| ) |
|
|
protectedvirtual |
Start a new log line (print prefix)
Reimplemented from WvLogRcv.
Definition at line 31 of file wvsyslog.cc.
◆ _mid_line()
void WvSyslog::_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 38 of file wvsyslog.cc.
◆ _end_line()
void WvSyslog::_end_line |
( |
| ) |
|
|
protectedvirtual |
◆ _make_prefix()
void WvLogRcv::_make_prefix |
( |
time_t |
now | ) |
|
|
protectedvirtualinherited |
◆ log()
void WvLogRcv::log |
( |
WvStringParm |
source, |
|
|
int |
loglevel, |
|
|
const char * |
_buf, |
|
|
size_t |
len |
|
) |
| |
|
virtualinherited |
◆ end_line()
void WvLogRcv::end_line |
( |
| ) |
|
|
inlineinherited |
◆ level() [1/2]
WvLog::LogLevel WvLogRcv::level |
( |
| ) |
const |
|
inlineinherited |
◆ level() [2/2]
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 |
◆ first_debug
WvLog::LogLevel WvSyslog::first_debug |
|
protected |
◆ current
◆ syslog_prefix
◆ include_appname
bool WvSyslog::include_appname |
|
protected |
◆ 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 78 of file wvlogrcv.h.
◆ force_new_line
bool WvLogRcvBase::force_new_line |
|
inherited |
The documentation for this class was generated from the following files: