Log4Qt::ClassLogger Class Reference

The class ClassLogger provides logging for a QObject derived class. More...

#include <classlogger.h>

List of all members.

Public Member Functions

 ClassLogger ()
Loggerlogger (const QObject *pObject)


Detailed Description

The class ClassLogger provides logging for a QObject derived class.

The class ClassLogger provides a logger for a specified QObject derived object. It is used by LOG4QT_DECLARE_QCLASS_LOGGER to implement the member functions provided by the macro.

Note:
All the functions declared in this class are thread-safe.
See also:
LOG4QT_DECLARE_QCLASS_LOGGER

Constructor & Destructor Documentation

Log4Qt::ClassLogger::ClassLogger (  ) 

Creates a ClassLogger object.


Member Function Documentation

Logger* Log4Qt::ClassLogger::logger ( const QObject *  pObject  ) 

Returns a pointer to a Logger named after the class of the object pObject.

On the first invocation the Logger is requested by a call to LogManager::logger(const char *pName). The pointer is stored to be returned on subsequent invocations.

See also:
LogManager::logger(const char *pName)

Referenced by Log4Qt::LogObject::logger().


The documentation for this class was generated from the following file:

Generated on Sun Mar 1 16:40:45 2009 for Log4Qt by  doxygen 1.5.6