#include <loggingLog4cpp.h>
List of all members.
Public Member Functions |
| Logger () |
| ~Logger () |
ACSCategory * | getLogger (const std::string &loggerName) |
ACSCategory * | getGlobalLogger () |
ACSCategory * | getStaticLogger () |
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 |
ACSCategory * | initLogger (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::getLogger |
( |
const std::string & |
loggerName |
) |
|
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
The documentation for this class was generated from the following file: