00001
00002
00003
00004
00005
00006 #ifndef __WVSYSLOG_H
00007 #define __WVSYSLOG_H
00008
00009 #include "wvlogrcv.h"
00010
00015 class WvSyslog : public WvLogRcv
00016 {
00017 public:
00018 WvSyslog(WvStringParm _prefix, bool _include_appname,
00019 WvLog::LogLevel _first_debug = WvLog::Debug,
00020 WvLog::LogLevel _max_level = WvLog::NUM_LOGLEVELS);
00021 virtual ~WvSyslog();
00022
00023 protected:
00024 WvLog::LogLevel first_debug;
00025 WvDynBuf current;
00026 WvString syslog_prefix;
00027 bool include_appname;
00028
00029 virtual void _begin_line();
00030 virtual void _mid_line(const char *str, size_t len);
00031 virtual void _end_line();
00032 };
00033
00034 #endif // __WVLOGBUFFER_H