Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes

logging::Logger Class Reference

#include <loggingLog4cpp.h>

List of all members.

Public Member Functions

 Logger ()
 ~Logger ()
ACSCategorygetLogger (const std::string &loggerName)
ACSCategorygetGlobalLogger ()
ACSCategorygetStaticLogger ()
void enableRemoteAppender (unsigned long cacheSize=100, unsigned int autoFlushTimeoutSec=3, Logging::AcsLogService_ptr loggingService=Logging::AcsLogService::_nil(), CosNaming::NamingContext_ptr namingService=CosNaming::NamingContext::_nil(), int maxLogsPerSecond=-1)
void enableSyslogAppender ()
void setLogLevels (const std::string &loggerName, log4cpp::Priority::PriorityLevel remote, log4cpp::Priority::PriorityLevel local)

Static Public Member Functions

static BasicLogInfo formatLog (log4cpp::Priority::PriorityLevel priority, const char *fmt,...)
static BasicLogInfo formatLog (ACE_Log_Priority priority, const char *fmt,...)
static BasicLogInfo formatLog (unsigned int priority, const char *fmt,...)

Private Member Functions

ACSCategoryinitLogger (const std::string &loggerName)

Private Attributes

bool remoteAppenderEnabled
bool syslogAppenderEnabled
unsigned int localLogLevel
unsigned int remoteLogLevel
unsigned int syslogLogLevel
unsigned long cacheSize
unsigned int autoFlushTimeoutSec
Logging::AcsLogService_ptr loggingService
CosNaming::NamingContext_ptr namingService
int maxLogsPerSecond
ACE_Thread_Mutex initMutex

Constructor & Destructor Documentation

logging::Logger::Logger (  ) 
logging::Logger::~Logger (  ) 

Member Function Documentation

void logging::Logger::enableRemoteAppender ( unsigned long  cacheSize = 100,
unsigned int  autoFlushTimeoutSec = 3,
Logging::AcsLogService_ptr  loggingService = Logging::AcsLogService::_nil(),
CosNaming::NamingContext_ptr  namingService = CosNaming::NamingContext::_nil(),
int  maxLogsPerSecond = -1 
)
void logging::Logger::enableSyslogAppender (  ) 
static BasicLogInfo logging::Logger::formatLog ( ACE_Log_Priority  priority,
const char *  fmt,
  ... 
) [static]
static BasicLogInfo logging::Logger::formatLog ( unsigned int  priority,
const char *  fmt,
  ... 
) [static]
static BasicLogInfo logging::Logger::formatLog ( log4cpp::Priority::PriorityLevel  priority,
const char *  fmt,
  ... 
) [static]
ACSCategory* logging::Logger::getGlobalLogger (  ) 
ACSCategory* logging::Logger::getLogger ( const std::string &  loggerName  ) 
ACSCategory* logging::Logger::getStaticLogger (  ) 
ACSCategory* logging::Logger::initLogger ( const std::string &  loggerName  )  [private]
void logging::Logger::setLogLevels ( const std::string &  loggerName,
log4cpp::Priority::PriorityLevel  remote,
log4cpp::Priority::PriorityLevel  local 
)

Member Data Documentation

unsigned int logging::Logger::autoFlushTimeoutSec [private]
unsigned long logging::Logger::cacheSize [private]
ACE_Thread_Mutex logging::Logger::initMutex [private]
unsigned int logging::Logger::localLogLevel [private]
Logging::AcsLogService_ptr logging::Logger::loggingService [private]
CosNaming::NamingContext_ptr logging::Logger::namingService [private]
unsigned int logging::Logger::remoteLogLevel [private]
unsigned int logging::Logger::syslogLogLevel [private]

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