Initial commit of files
This commit is contained in:
59
include/libnet++/Logging.h
Normal file
59
include/libnet++/Logging.h
Normal file
@ -0,0 +1,59 @@
|
||||
//
|
||||
// Linux Daemon
|
||||
//
|
||||
|
||||
/* prevent multiple inclusions */
|
||||
#ifndef __Logging__
|
||||
#define __Logging__
|
||||
|
||||
/* includes *****************************************************************/
|
||||
|
||||
#include "LogData.h"
|
||||
|
||||
/* defines ******************************************************************/
|
||||
|
||||
/* macros *******************************************************************/
|
||||
|
||||
/* structs & typedefs *******************************************************/
|
||||
|
||||
/* c class definitions ******************************************************/
|
||||
|
||||
class Logging {
|
||||
// public data
|
||||
public:
|
||||
LogData Log;
|
||||
|
||||
protected:
|
||||
// logfile
|
||||
|
||||
// pid
|
||||
|
||||
// private data
|
||||
private:
|
||||
|
||||
// static data
|
||||
|
||||
// public methods
|
||||
public:
|
||||
// constructors
|
||||
Logging();
|
||||
|
||||
// destructor
|
||||
virtual ~Logging();
|
||||
|
||||
// public methods
|
||||
FILE *LogOpen( const char *log, int bz2 )
|
||||
{ return Log.LogOpen( log, bz2 ); };
|
||||
FILE *LogOpen( const char *log )
|
||||
{ return Log.LogOpen( log ); };
|
||||
bool IsLogging(void) {return Log.IsLogging();};
|
||||
|
||||
// virtual functions
|
||||
|
||||
// exceptions
|
||||
|
||||
// private methods
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user