#include <pvlogger.h>
Public Types | |
typedef int32 | log_level_type |
typedef int32 | message_id_type |
typedef int32 | filter_status_type |
typedef _OsclBasicAllocator | alloc_type |
Public Methods | |
void | SetLogLevel (log_level_type level) |
OSCL_IMPORT_REF void | SetLogLevelAndPropagate (log_level_type level) |
log_level_type | GetLogLevel () |
void | DisableAppenderInheritance () |
void | AddAppender (OsclSharedPtr< PVLoggerAppender > &appender) |
void | RemoveAppender (OsclSharedPtr< PVLoggerAppender > &appender) |
void | AddFilter (OsclSharedPtr< PVLoggerFilter > &filter) |
uint32 | GetNumAppenders () |
OSCL_IMPORT_REF bool | IsActive (log_level_type level) |
OSCL_IMPORT_REF void | LogMsgStringV (message_id_type msgID, const char *fmt, va_list arguments) |
OSCL_IMPORT_REF void | LogMsgBuffersV (message_id_type msgID, int32 numPairs, va_list arguments) |
OSCL_IMPORT_REF void | LogMsgString (message_id_type msgID, const char *fmt,...) |
OSCL_IMPORT_REF void | LogMsgBuffers (message_id_type msgID, int32 numPairs,...) |
OSCL_IMPORT_REF | PVLogger (const char *inputTag, log_level_type level, bool oAppenderInheritance) |
virtual | ~PVLogger () |
Static Public Methods | |
OSCL_IMPORT_REF void | Init () |
OSCL_IMPORT_REF void | Cleanup () |
OSCL_IMPORT_REF PVLogger * | GetLoggerObject (const char *inputTag) |
Protected Methods | |
void | SetParent (PVLogger *parentLogger) |
PVLogger * | GetParent () |
Friends | |
class | PVLoggerRegistry |
|
|
|
|
|
|
|
|
|
Logger Constructor
|
|
|
|
This method adds an appender to the logging control point. Each logger maintains a list of appenders. Any msg to a logger if deemed active is logged to all the appenders.
|
|
This method adds a message filter to the logging control point. Each logger maintains a list of filters. Any msg to a logger if deemed active is passed through the msg filters prior to logging.
|
|
Frees the PVLogger singleton used by the current thread. This must be called before thread exit. No messages can be logged after cleanup.
|
|
This method disables appender inheritance for the logging control point |
|
This is a factory method to create a log control point, with a certain input tag. There is a central registry of all the loggers, with their corresponding tags, called PV Logger Registry. In case the logger with the specified tag exists in the global registry, it is returned, else a new one is created and a pointer to the same is returend.
|
|
This method returns the log level of a control point. This could either have been set explicitly by the user (at the time of creation or later) or could have been inherited from one of its ancestors.
|
|
This method returns the number of appenders attached to the logging control point. |
|
|
|
PVLogger needs to be initialized once per thread. This creates the PVLogger singleton that is used throughout the duration of the thread. Initialization must occur before the first message is logged.
|
|
This method determines if a msg passed to the logging control point is active or not. Only messages that are deemed active are logged. Messages are considered not active if any of the following criteria are met:
|
|
This method logs opaque data buffers to all the appenders, after running thrrough the message filters. After logging the message to the appenders attached to the current control point, the message is passed up to the parent node, only if appender inheritance is enabled.
|
|
This method logs opaque data buffers to all the appenders, after running thrrough the message filters. After logging the message to the appenders attached to the current control point, the message is passed up to the parent node, only if appender inheritance is enabled.
|
|
This method logs formatted text msg to all the appenders, after running thrrough the message filters. After logging the message to the appenders attached to the current control point, the message is passed up to the parent node, only if appender inheritance is enabled.
|
|
This method logs formatted text msg to all the appenders, after running thrrough the message filters. After logging the message to the appenders attached to the current control point, the message is passed up to the parent node, only if appender inheritance is enabled.
|
|
This method removes an appender from the logging control point. Each logger maintains a list of appenders. Any msg to a logger if deemed active is logged to all the appenders.
|
|
This method is used to set the log level of a control point.
|
|
This method is used to set the log level of a control point, as well as to propagate the level to all the descendants of this control point.
|
|
|
|
|