#include <wvsyslog.h>
Inherits WvLogRcv.
Collaboration diagram for WvSyslog:
Definition at line 15 of file wvsyslog.h.
Public Member Functions | |
| WvSyslog (WvStringParm _prefix, bool _include_appname, WvLog::LogLevel _first_debug=WvLog::Debug, WvLog::LogLevel _max_level=WvLog::NUM_LOGLEVELS) | |
| virtual | ~WvSyslog () |
| void | end_line () |
| WvLog::LogLevel | level () const |
| void | level (WvLog::LogLevel lvl) |
| bool | set_custom_levels (WvString descr) |
Static Public Attributes | |
| char * | loglevels [WvLog::NUM_LOGLEVELS] |
Protected Member Functions | |
| virtual void | _begin_line () |
| Start a new log line (print prefix). | |
| 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. | |
| DeclareWvDict (Src_Lvl, WvString, src) | |
| virtual void | log (const WvLog *source, int loglevel, const char *_buf, size_t len) |
| virtual void | _make_prefix () |
| Set the Prefix and Prefix Length (size_t prelen). | |
| const char * | appname (const WvLog *log) const |
Protected Attributes | |
| WvLog::LogLevel | first_debug |
| WvDynBuf | current |
| WvString | syslog_prefix |
| bool | include_appname |
| const WvLog * | last_source |
| WvLog::LogLevel | max_level |
| WvLog::LogLevel | last_level |
| bool | at_newline |
| WvString | prefix |
| size_t | prelen |
| Src_LvlDict | custom_levels |
|
||||||||||||||||||||
|
Definition at line 13 of file wvsyslog.cc. References first_debug, include_appname, syslog_prefix, and WvStringParm. |
|
|
Definition at line 24 of file wvsyslog.cc. References WvLogRcv::end_line(). |
|
|
Start a new log line (print prefix).
Reimplemented from WvLogRcv. Definition at line 31 of file wvsyslog.cc. References include_appname, and WvBufBaseCommonImpl< T >::put(). |
|
|
End this (Guaranteed NonEmpty) log line.
Reimplemented from WvLogRcv. Definition at line 44 of file wvsyslog.cc. References first_debug, WvBufBaseCommonImpl< T >::get(), WvBufBaseCommonImpl< T >::put(), WvBufBaseCommonImpl< T >::used(), and WvBufBaseCommonImpl< T >::zap(). |
|
|
Set the Prefix and Prefix Length (size_t prelen).
Reimplemented in WvLogFileBase. Definition at line 165 of file wvlog.cc. References WvLogRcvBase::appname(), WvLogRcv::last_level, WvLogRcv::last_source, WvFastString::len(), WvLogRcv::loglevels, WvLogRcv::prefix, and WvLogRcv::prelen. Referenced by WvLogRcv::log(). |
|
||||||||||||
|
add text to the current log line.
'str' may contain only one ' Implements WvLogRcv. Definition at line 38 of file wvsyslog.cc. References WvBufBaseCommonImpl< T >::put(). |
|
|
Definition at line 140 of file wvlog.cc. References WvLog::app, and log. Referenced by WvLogFileBase::_make_prefix(), and WvLogRcv::_make_prefix(). |
|
||||||||||||||||
|
|
|
|
Definition at line 82 of file wvlogrcv.h. References WvLogRcv::_end_line(), WvLogRcv::_mid_line(), and WvLogRcv::at_newline. Referenced by WvLogRcv::log(), WvLogBuffer::messages(), WvLogBuffer::~WvLogBuffer(), WvLogConsole::~WvLogConsole(), and ~WvSyslog(). |
|
|
Definition at line 88 of file wvlogrcv.h. References WvLogRcv::max_level. |
|
|
Definition at line 86 of file wvlogrcv.h. References WvLog::LogLevel, and WvLogRcv::max_level. Referenced by main(). |
|
||||||||||||||||||||
|
Implements WvLogRcvBase. Definition at line 197 of file wvlog.cc. References WvLogRcv::_make_prefix(), WvLog::app, WvLogRcv::custom_levels, WvString::edit(), WvLogRcv::end_line(), WvLogRcv::last_level, WvLogRcv::last_source, WvLog::LogLevel, WvLogRcv::max_level, my_isprint(), and strlwr(). |
|
|
Definition at line 290 of file wvlog.cc. References WvLogRcv::custom_levels, WvString::edit(), WvStringList::split(), strlwr(), and trim_string(). |
|
|
Definition at line 33 of file wvlogrcv.h. Referenced by WvLogRcv::end_line(), and WvLogRcv::WvLogRcv(). |
|
|
Definition at line 25 of file wvsyslog.h. |
|
|
Definition at line 48 of file wvlogrcv.h. Referenced by WvLogRcv::log(), and WvLogRcv::set_custom_levels(). |
|
|
Definition at line 24 of file wvsyslog.h. Referenced by _end_line(), and WvSyslog(). |
|
|
Definition at line 27 of file wvsyslog.h. Referenced by _begin_line(), and WvSyslog(). |
|
|
Definition at line 32 of file wvlogrcv.h. Referenced by WvLogRcv::_make_prefix(), WvLogRcv::log(), and WvLogRcv::WvLogRcv(). |
|
|
Definition at line 31 of file wvlogrcv.h. Referenced by WvLogRcv::_make_prefix(), WvLogRcv::log(), and WvLogRcv::WvLogRcv(). |
|
|
Initial value: {
"Crit",
"Err",
"Warn",
"Notice",
"Info",
"*1",
"*2",
"*3",
"*4",
"*5",
}
Definition at line 23 of file wvlog.cc. Referenced by WvLogRcv::_make_prefix(). |
|
|
Definition at line 32 of file wvlogrcv.h. Referenced by WvLogRcv::level(), WvLogRcv::log(), and WvLogRcv::WvLogRcv(). |
|
|
Definition at line 34 of file wvlogrcv.h. Referenced by WvLogRcv::_begin_line(), and WvLogRcv::_make_prefix(). |
|
|
Definition at line 35 of file wvlogrcv.h. Referenced by WvLogRcv::_begin_line(), and WvLogRcv::_make_prefix(). |
|
|
Definition at line 26 of file wvsyslog.h. Referenced by WvSyslog(). |
1.3.6-20040222