|
ACF $AcfVersion:0$
|
Interface for objects that support logging functionality. More...
#include <ILoggable.h>
Public Member Functions | |
| virtual void | SetLogPtr (IMessageConsumer *logPtr)=0 |
| Attach a message consumer for logging. | |
| virtual IMessageConsumer * | GetLogPtr () const =0 |
| Get the currently attached message consumer. | |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Interface for objects that support logging functionality.
This interface allows objects to have a message consumer (logger) attached and detached. It's typically used in conjunction with CLoggerBase to provide logging capability to components and other objects.
Objects implementing this interface can accept a message consumer and use it to send log messages. The interface doesn't specify how messages are sent; that's typically handled by derived classes like CLoggerBase.
Definition at line 46 of file ILoggable.h.
|
pure virtual |
Get the currently attached message consumer.
Returns the message consumer previously set via SetLogPtr(), or NULL if no consumer is attached or if it was detached.
Implemented in ilog::CLoggerBase.
|
pure virtual |
Attach a message consumer for logging.
Sets the message consumer that will receive log messages from this object. Pass NULL to detach the current logger and disable logging.
| logPtr | Pointer to message consumer to use for logging, or NULL to disable. The caller retains ownership of the consumer; this object only stores a weak pointer. |
Implemented in ilog::CLoggerBase.