sipxportlib
Version 3.3
|
#include <OsSysLogTask.h>
Public Member Functions | |
OsSysLogTask (const int maxInMemoryLogEntries=0, const int options=OsSysLog::OPT_NONE) | |
virtual | ~OsSysLogTask () |
virtual UtlBoolean | handleMessage (OsMsg &eventMessage) |
OsStatus | clear () |
OsStatus | flush (const OsTime &rTimeout=OsTime::OS_INFINITY) |
OsTimer * | getTimer () |
OsStatus | getMaxEntries (int &maxEntries) |
OsStatus | getLogEntries (const int maxEntries, char *entries[], int &actualEntries) |
param maxEntries - The maximum number of in-memory log entries More... | |
Public Member Functions inherited from OsServerTask | |
OsServerTask (const UtlString &name="", void *pArg=NULL, const int maxRequestQMsgs=DEF_MAX_MSGS, const int priority=DEF_PRIO, const int options=DEF_OPTIONS, const int stackSize=DEF_STACKSIZE) | |
Main constructor for OsServerTask. More... | |
virtual | ~OsServerTask () |
virtual OsStatus | postMessage (const OsMsg &rMsg, const OsTime &rTimeout=OsTime::OS_INFINITY, UtlBoolean sentFromISR=FALSE) |
virtual void | requestShutdown (void) |
OsMsgQ * | getMessageQueue () |
Protected Member Functions | |
OsStatus | processAdd (char *pEntry) |
OsStatus | processAddTail (char *pEntry) |
OsStatus | processConsoleEnable (const UtlBoolean enable) |
OsStatus | processHeadCommand (const int iEntries) |
OsStatus | processTailCommand (const int iEntries) |
OsStatus | processSetFile (const char *szFile) |
OsStatus | processAddSocket (const char *remoteHost) |
OsStatus | processSetFlushPeriod (const int iPeriod) |
OsStatus | processFlushLog (OsEvent *pEvent) |
OsStatus | processSetCallback (OsSysLogCallback pCallback) |
Protected Member Functions inherited from OsServerTask | |
virtual OsStatus | receiveMessage (OsMsg *&rpMsg) |
virtual OsStatus | receiveMessage (OsMsg *&rpMsg, const OsTime &rTimeout) |
virtual int | run (void *pArg) |
Protected Attributes | |
UtlBoolean | mConsoleEnabled |
param: maxEntries - The maximum number of entries to fetch. param: entries - Array of char* large enough to accommodate More... | |
char ** | mpRingBuffer |
int | mLogCount |
int | mRingBufferLength |
int | mRingBufferNext |
FILE * | mpUnboundedLog |
UtlString | mUnboundedLogFile |
UtlString | mBoundedLogFile |
int | mFlushPeriod |
UtlBoolean | mLogChanged |
OsTimer * | mpTimer |
OsSocket * | mpSockets [MAX_SOCKET_TARGETS] |
OsSysLogCallback | mpCallback |
OsRWMutex | mRWMutex |
OsTime | mpLastReopen |
int | mOptions |
Protected Attributes inherited from OsServerTask | |
OsMsgQ | mIncomingQ |
Additional Inherited Members | |
Static Public Attributes inherited from OsServerTask | |
static const int | DEF_MAX_MSGS = OsMsgQ::DEF_MAX_MSGS |
OsSysLogTask | ( | const int | maxInMemoryLogEntries = 0 , |
const int | options = OsSysLog::OPT_NONE |
||
) |
|
virtual |
|
virtual |
Implements OsServerTask.
OsStatus clear | ( | ) |
OsStatus flush | ( | const OsTime & | rTimeout = OsTime::OS_INFINITY | ) |
|
inline |
OsStatus getMaxEntries | ( | int & | maxEntries | ) |
OsStatus getLogEntries | ( | const int | maxEntries, |
char * | entries[], | ||
int & | actualEntries | ||
) |
param maxEntries - The maximum number of in-memory log entries
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
param: maxEntries - The maximum number of entries to fetch. param: entries - Array of char* large enough to accommodate
param: actualEntries - The actual number of entries returned. This
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |