Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

WvSyslog Class Reference

#include <wvsyslog.h>

Inheritance diagram for WvSyslog:

WvLogRcv WvLogRcv WvLogRcvBase WvLogRcvBase WvLogRcvBase WvLogRcvBase List of all members.

Public Methods

 WvSyslog (const WvString &_prefix, bool _include_appname, WvLog::LogLevel _first_debug=WvLog::Debug, WvLog::LogLevel _max_level=WvLog::NUM_LOGLEVELS)
virtual ~WvSyslog ()
 WvSyslog (const WvString &_prefix, bool _include_appname, WvLog::LogLevel _first_debug=WvLog::Debug, WvLog::LogLevel _max_level=WvLog::NUM_LOGLEVELS)
virtual ~WvSyslog ()

Protected Methods

virtual void _begin_line ()
virtual void _mid_line (const char *str, size_t len)
virtual void _end_line ()
virtual void _begin_line ()
virtual void _mid_line (const char *str, size_t len)
virtual void _end_line ()

Protected Attributes

WvLog::LogLevel first_debug
WvBuffer current
WvString syslog_prefix
bool include_appname

Detailed Description

WvSyslog is a descendant of WvLogRcv that sends messages to the syslogd daemon.

Definition at line 14 of file include/wvsyslog.h.


Constructor & Destructor Documentation

WvSyslog::WvSyslog const WvString   _prefix,
bool    _include_appname,
WvLog::LogLevel    _first_debug = WvLog::Debug,
WvLog::LogLevel    _max_level = WvLog::NUM_LOGLEVELS
 

Definition at line 13 of file wvsyslog.cc.

References first_debug, include_appname, WvLog::LogLevel, and syslog_prefix.

WvSyslog::~WvSyslog   [virtual]
 

Definition at line 24 of file wvsyslog.cc.

References WvLogRcv::end_line.

WvSyslog::WvSyslog const WvString   _prefix,
bool    _include_appname,
WvLog::LogLevel    _first_debug = WvLog::Debug,
WvLog::LogLevel    _max_level = WvLog::NUM_LOGLEVELS
 

virtual WvSyslog::~WvSyslog   [virtual]
 


Member Function Documentation

virtual void WvSyslog::_begin_line   [protected, virtual]
 

Start a new log line (print prefix)

Reimplemented from WvLogRcv.

void WvSyslog::_begin_line   [protected, virtual]
 

Start a new log line (print prefix)

Reimplemented from WvLogRcv.

Definition at line 31 of file wvsyslog.cc.

References current, WvLogRcv::prefix, WvLogRcv::prelen, and WvBuffer::put.

virtual void WvSyslog::_end_line   [protected, virtual]
 

End this (Guaranteed NonEmpty) log line

Reimplemented from WvLogRcv.

void WvSyslog::_end_line   [protected, virtual]
 

End this (Guaranteed NonEmpty) log line

Reimplemented from WvLogRcv.

Definition at line 44 of file wvsyslog.cc.

References WvLog::Critical, current, WvLog::Debug, WvLog::Debug2, WvLog::Error, first_debug, WvBuffer::get, WvLog::Info, WvLogRcv::last_level, WvLog::Notice, WvBuffer::put, WvBuffer::used, WvLog::Warning, and WvBuffer::zap.

virtual void WvSyslog::_mid_line const char *    str,
size_t    len
[protected, virtual]
 

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.

void WvSyslog::_mid_line const char *    str,
size_t    len
[protected, virtual]
 

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.

References current, and WvBuffer::put.


Member Data Documentation

WvBuffer WvSyslog::current [protected]
 

Definition at line 24 of file streams/wvsyslog.h.

Referenced by _begin_line, _end_line, and _mid_line.

WvLog::LogLevel WvSyslog::first_debug [protected]
 

Definition at line 23 of file streams/wvsyslog.h.

Referenced by _end_line, and WvSyslog.

bool WvSyslog::include_appname [protected]
 

Definition at line 26 of file streams/wvsyslog.h.

Referenced by WvSyslog.

WvString WvSyslog::syslog_prefix [protected]
 

Definition at line 25 of file streams/wvsyslog.h.

Referenced by WvSyslog.


The documentation for this class was generated from the following files:
Generated on Sun Aug 25 02:29:47 2002 for WvStreams by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002