YGP::Syslog Class Reference

Class to perform some logging to either a log-file (if available) or to the console. More...

List of all members.

Public Types

enum  {
  EMERGENCY, ALERT, CRITICAL, ERROR,
  WARNING, NOTICE, INFO, DEBUGGING
}

Public Member Functions

 Syslog (const char *appl)
 Syslog (const char *appl, int facility)
 ~Syslog ()

Static Public Member Functions

static void write (int level, const char *text)


Detailed Description

Class to perform some logging to either a log-file (if available) or to the console.

Every entry can be classified (according to its serverity).


Constructor & Destructor Documentation

YGP::Syslog::Syslog ( const char *  appl  )  [inline]

Constructor; specifying the logging application.

YGP::Syslog::Syslog ( const char *  appl,
int  facility 
) [inline]

Constructor; specifying the logging application and the type of that application.

YGP::Syslog::~Syslog (  )  [inline]

Destructor.


Member Function Documentation

static void YGP::Syslog::write ( int  level,
const char *  text 
) [inline, static]

Writes a message to the logfile; specifying the level of the message.


The documentation for this class was generated from the following files:

YGP Version 0.9.31 - Generated on Wed Nov 18 11:25:27 2009 by doxygen 1.5.8