Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

wvsyslog.h

Go to the documentation of this file.
00001 /* -*- Mode: C++ -*-
00002  * Worldvisions Weaver Software:
00003  *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
00004  *
00005  */ 
00006 #ifndef __WVSYSLOG_H
00007 #define __WVSYSLOG_H
00008 
00009 #include "wvlogrcv.h"
00010 
00011 /**
00012  * WvSyslog is a descendant of WvLogRcv that sends messages to the syslogd
00013  * daemon.
00014  */
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

Generated on Wed Dec 15 15:08:11 2004 for WvStreams by  doxygen 1.3.9.1