Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

Logger Class Reference

Class for interaction with the syslog and file logging. More...

#include <Logger.h>

List of all members.

Public Member Functions

virtual ~Logger ()
 Destructor.
int openSyslog (int facility, int priority)
 start logging through the syslog facility
void closeSyslog ()
 stop logging through the syslog facility
int openFilelog (char *fileName, int priority)
 start logging in a logfile
void closeFilelog ()
 stop logging in a logfile
int setSyslogPriority (int priority)
 set the logging priority for the syslog logging
int setFilelogPriority (int priority)
 set the priority for the logfile
int setIdent (char *ident)
 set the identification string
void debug (const char *fmt,...)
 Set the priority of the logging.
void info (const char *fmt,...)
void notice (const char *fmt,...)
void warning (const char *fmt,...)
void error (const char *fmt,...)
void crit (const char *fmt,...)

Static Public Member Functions

static LoggerInstance ()
 Instance.

Protected Member Functions

 Logger ()
 Default Constructor.


Detailed Description

Class for interaction with the syslog and file logging.


Member Function Documentation

Logger * Logger::Instance  )  [static]
 

Instance.

  • ident identification of the logged line.
  • priority syslog priority of that shows up.
  • facility where to file logs. -1 disable syslog logging.
  • fileName path to the file to log. NULL to log only to syslog.


The documentation for this class was generated from the following files:
Generated on Tue Sep 13 01:32:47 2005 for DDT Project by  doxygen 1.4.4