Log Class Reference

#include <log.h>

List of all members.

Public Member Functions

LogsetLogName (std::string newLogName)
std::string getLogName () const
LogsetFacility (int newFacility)
int getFacility () const
LogStringBuilder msg (int prio=PRIO_INFO)

Static Public Member Functions

static Loginstance ()

Static Public Attributes

static const int FAC_USER = LOG_USER
static const int FAC_MAIL = LOG_MAIL
static const int FAC_DAEMON = LOG_DAEMON
static const int FAC_AUTH = LOG_AUTH
static const int FAC_SYSLOG = LOG_SYSLOG
static const int FAC_LPR = LOG_LPR
static const int FAC_NEWS = LOG_NEWS
static const int FAC_UUCP = LOG_UUCP
static const int FAC_CRON = LOG_CRON
static const int FAC_AUTHPRIV = LOG_AUTHPRIV
static const int FAC_FTP = LOG_FTP
static const int FAC_LOCAL0 = LOG_LOCAL0
static const int FAC_LOCAL1 = LOG_LOCAL1
static const int FAC_LOCAL2 = LOG_LOCAL2
static const int FAC_LOCAL3 = LOG_LOCAL3
static const int FAC_LOCAL4 = LOG_LOCAL4
static const int FAC_LOCAL5 = LOG_LOCAL5
static const int FAC_LOCAL6 = LOG_LOCAL6
static const int FAC_LOCAL7 = LOG_LOCAL7
static const int PRIO_EMERG = LOG_EMERG
static const int PRIO_ALERT = LOG_ALERT
static const int PRIO_CRIT = LOG_CRIT
static const int PRIO_ERR = LOG_ERR
static const int PRIO_WARNING = LOG_WARNING
static const int PRIO_NOTICE = LOG_NOTICE
static const int PRIO_INFO = LOG_INFO
static const int PRIO_DEBUG = LOG_DEBUG

Private Member Functions

 Log ()
 ~Log ()
 Log (const Log &l)
void operator= (const Log &l)
void open ()

Private Attributes

Mutex mutex
std::string logName
int facility

Static Private Attributes

static Loginst
static Mutex instMutex

Friends

class instanceCleaner
class LogStringBuilder

Classes

class  instanceCleaner


Constructor & Destructor Documentation

Log::Log (  )  [private]

Log::~Log (  )  [private]

Log::Log ( const Log l  )  [private]


Member Function Documentation

Log & Log::instance (  )  [static]

Log & Log::setLogName ( std::string  newLogName  ) 

std::string Log::getLogName (  )  const [inline]

Log & Log::setFacility ( int  newFacility  ) 

int Log::getFacility (  )  const [inline]

LogStringBuilder Log::msg ( int  prio = PRIO_INFO  )  [inline]

void Log::operator= ( const Log l  )  [private]

void Log::open (  )  [private]


Friends And Related Function Documentation

friend class instanceCleaner [friend]

friend class LogStringBuilder [friend]


Member Data Documentation

const int Log::FAC_USER = LOG_USER [static]

const int Log::FAC_MAIL = LOG_MAIL [static]

const int Log::FAC_DAEMON = LOG_DAEMON [static]

const int Log::FAC_AUTH = LOG_AUTH [static]

const int Log::FAC_SYSLOG = LOG_SYSLOG [static]

const int Log::FAC_LPR = LOG_LPR [static]

const int Log::FAC_NEWS = LOG_NEWS [static]

const int Log::FAC_UUCP = LOG_UUCP [static]

const int Log::FAC_CRON = LOG_CRON [static]

const int Log::FAC_AUTHPRIV = LOG_AUTHPRIV [static]

const int Log::FAC_FTP = LOG_FTP [static]

const int Log::FAC_LOCAL0 = LOG_LOCAL0 [static]

const int Log::FAC_LOCAL1 = LOG_LOCAL1 [static]

const int Log::FAC_LOCAL2 = LOG_LOCAL2 [static]

const int Log::FAC_LOCAL3 = LOG_LOCAL3 [static]

const int Log::FAC_LOCAL4 = LOG_LOCAL4 [static]

const int Log::FAC_LOCAL5 = LOG_LOCAL5 [static]

const int Log::FAC_LOCAL6 = LOG_LOCAL6 [static]

const int Log::FAC_LOCAL7 = LOG_LOCAL7 [static]

const int Log::PRIO_EMERG = LOG_EMERG [static]

const int Log::PRIO_ALERT = LOG_ALERT [static]

const int Log::PRIO_CRIT = LOG_CRIT [static]

const int Log::PRIO_ERR = LOG_ERR [static]

const int Log::PRIO_WARNING = LOG_WARNING [static]

const int Log::PRIO_NOTICE = LOG_NOTICE [static]

const int Log::PRIO_INFO = LOG_INFO [static]

const int Log::PRIO_DEBUG = LOG_DEBUG [static]

Log * Log::inst [static, private]

Mutex Log::instMutex [static, private]

Mutex Log::mutex [private]

std::string Log::logName [private]

int Log::facility [private]


The documentation for this class was generated from the following files:
Generated on Tue Nov 27 14:11:51 2007 for anytun by  doxygen 1.5.1