60 lines
1.1 KiB
C++
60 lines
1.1 KiB
C++
//
|
|
// 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
|