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