sipxportlib
Version 3.3
|
#include <OsSysLog.h>
Public Types | |
enum | OsSysLogOptions { OPT_NONE = 0x00000000, OPT_SHARED_LOGFILE = 0x00000001 } |
Static Public Member Functions | |
static OsStatus | initialize (const int maxInMemoryLogEntries, const char *processId, const int options=OPT_NONE) |
enumcode: OPT_NONE - No Extra Options More... | |
static OsStatus | shutdown () |
param maxInMemoryLogEntries - Defines the maximum number of in-memory More... | |
static OsStatus | setOutputFile (const int minFlushPeriod, const char *logfile) |
static OsStatus | setCallbackFunction (OsSysLogCallback pCallback) |
param minFlushPeriod - Defines the minimum amount of that that must More... | |
static OsStatus | addOutputSocket (const char *remoteHost) |
param pCallback - Pointer to a callback function that takes three More... | |
static OsStatus | enableConsoleOutput (const UtlBoolean enable) |
static OsStatus | setLoggingPriority (const OsSysLogPriority priority) |
param enable - Specify TRUE to enable console logging or FALSE to More... | |
static OsStatus | setLoggingPriorityForFacility (const OsSysLogFacility facility, const OsSysLogPriority priority) |
param priority - Defines the minimum priority level of log events that More... | |
static OsStatus | add (const char *taskName, const int taskId, const OsSysLogFacility facility, const OsSysLogPriority priority, const char *format,...) |
param facility - Defines the facility whose logging events should be More... | |
static OsStatus | add (const OsSysLogFacility facility, const OsSysLogPriority priority, const char *format,...) |
param: taskName - The name of the task if available. param: taskId - The TaskID of the task if available. param: facility - Defines the facility responsible for adding the More... | |
static OsStatus | vadd (const OsSysLogFacility facility, const OsSysLogPriority priority, const char *format, va_list ap) |
param: facility - Defines the facility responsible for adding the More... | |
static OsStatus | vadd (const char *taskName, const OsTaskId_t taskId, const OsSysLogFacility facility, const OsSysLogPriority priority, const char *format, va_list ap) |
param: facility - Defines the facility responsible for adding the More... | |
static OsStatus | clearInMemoryLog () |
param: taskName - The name of the task if available. param: taskId - The TaskID of the task if available. param: facility - Defines the facility responsible for adding the More... | |
static OsStatus | flush (const OsTime &rTimeout=OsTime::OS_INFINITY) |
static void | initSysLog (const OsSysLogFacility facility, const char *processID, const char *logname, const char *loglevel) |
static OsStatus | getMaxInMemoryLogEntries (int &maxEntries) |
static OsStatus | tailMemoryLog (const int numEntries) |
param maxEntries - The maximum number of in-memory log entries More... | |
static OsStatus | headMemoryLog (const int numEntries) |
param: numEntries - The number of log entries display starting from More... | |
static OsStatus | getLogEntries (const int maxEntries, char *entries[], int &actualEntries) |
param: numEntries - The number of log entries display starting from More... | |
static OsStatus | parseLogString (const char *szSource, UtlString &date, UtlString &eventCount, UtlString &facility, UtlString &priority, UtlString &hostname, UtlString &taskname, UtlString &taskId, UtlString &processId, UtlString &content) |
param: maxEntries - The maximum number of entries to fetch. param: entries - Array of char* large enough to accommodate More... | |
static OsStatus | getPriorityName (OsSysLogPriority priorityId, UtlString &name) |
static OsStatus | getPriorityForName (const UtlString &name, OsSysLogPriority &priorityId) |
static OsSysLogPriority | getLoggingPriority () |
static OsSysLogPriority | getLoggingPriorityForFacility (const OsSysLogFacility facility) |
static UtlBoolean | willLog (OsSysLogFacility facility, OsSysLogPriority priority) |
static int | getNumFacilities () |
static OsTimer * | getTimer () |
static UtlBoolean | isTaskPtrNull () |
Static Public Attributes | |
static const char * | sPriorityNames [] |
static const int | sPriorityNamesNum |
static const char * | sFacilityNames [] |
static const int | sFacilityNamesNum |
Protected Member Functions | |
OsSysLog (const OsSysLog &rOsSysLog) | |
OsSysLog & | operator= (const OsSysLog &rhs) |
OsSysLog () | |
virtual | ~OsSysLog () |
Static Protected Member Functions | |
static UtlString | escape (const UtlString &source) |
static UtlString | unescape (const UtlString &source) |
static void | getTaskInfo (UtlString &taskName, OsTaskId_t &taskId) |
Static Protected Attributes | |
static OsAtomicLightPtr< OsSysLogTask > | spOsSysLogTask |
static OsAtomicULong | sEventCount |
static OsSysLogPriority | spPriorities [FAC_MAX_FACILITY] |
static OsSysLogPriority | sLoggingPriority = PRI_ERR |
static UtlString | sProcessId = "" |
static UtlString | sHostname = "" |
static UtlBoolean | bPrioritiesInitialized = FALSE |
enum OsSysLogOptions |
|
protected |
|
protectedvirtual |
|
static |
enumcode: OPT_NONE - No Extra Options
enumcode: OPT_SHARED_LOGFILE - Places the OsSysLog in a mode where
|
static |
param maxInMemoryLogEntries - Defines the maximum number of in-memory
param processId - This parameter represents an arbitrary identifier param options - This parameter defines instance specific options. See
|
static |
|
static |
param minFlushPeriod - Defines the minimum amount of that that must
param logfile - The full qualified path the the target log file.
|
static |
param pCallback - Pointer to a callback function that takes three
|
static |
|
static |
param enable - Specify TRUE to enable console logging or FALSE to
|
static |
param priority - Defines the minimum priority level of log events that
|
static |
param facility - Defines the facility whose logging events should be
param priority - Defines the minimum priority level of log events that
|
static |
param: taskName - The name of the task if available. param: taskId - The TaskID of the task if available. param: facility - Defines the facility responsible for adding the
param: priority - Defines the priority of the event. See
|
static |
param: facility - Defines the facility responsible for adding the
param: priority - Defines the priority of the event. See
|
static |
param: facility - Defines the facility responsible for adding the
param: priority - Defines the priority of the event. See
|
static |
param: taskName - The name of the task if available. param: taskId - The TaskID of the task if available. param: facility - Defines the facility responsible for adding the
param: priority - Defines the priority of the event. See
|
static |
|
static |
|
static |
|
static |
param maxEntries - The maximum number of in-memory log entries
|
static |
param: numEntries - The number of log entries display starting from
|
static |
param: numEntries - The number of log entries display starting from
|
static |
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
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inlinestatic |
|
staticprotected |
|
static |
|
static |
|
static |
|
static |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |