#include <appenderskeleton.h>
Public Member Functions | |
AppenderSkeleton (QObject *pParent=0) | |
virtual Filter * | filter () const |
virtual Layout * | layout () const |
bool | isActive () const |
bool | isClosed () const |
virtual QString | name () const |
Level | threshold () const |
virtual void | setLayout (Layout *pLayout) |
virtual void | setName (const QString &rName) |
void | setThreshold (Level level) |
virtual void | activateOptions () |
virtual void | addFilter (Filter *pFilter) |
virtual void | clearFilters () |
virtual void | close () |
virtual void | doAppend (const LoggingEvent &rEvent) |
Filter * | firstFilter () const |
bool | isAsSevereAsThreshold (Level level) const |
Protected Member Functions | |
AppenderSkeleton (const bool isActive, QObject *pParent=0) | |
virtual void | append (const LoggingEvent &rEvent)=0 |
virtual bool | checkEntryConditions () const |
Protected Attributes | |
QMutex | mObjectGuard |
Properties | |
bool | isActive |
bool | isClosed |
Level | threshold |
The ownership and lifetime of objects of this class are managed. See Object ownership for more details.
Log4Qt::AppenderSkeleton::AppenderSkeleton | ( | QObject * | pParent = 0 |
) |
Log4Qt::AppenderSkeleton::AppenderSkeleton | ( | const bool | isActive, | |
QObject * | pParent = 0 | |||
) | [protected] |
Filter * Log4Qt::AppenderSkeleton::filter | ( | ) | const [inline, virtual] |
Layout * Log4Qt::AppenderSkeleton::layout | ( | ) | const [inline, virtual] |
bool Log4Qt::AppenderSkeleton::isActive | ( | ) | const |
bool Log4Qt::AppenderSkeleton::isClosed | ( | ) | const |
QString Log4Qt::AppenderSkeleton::name | ( | ) | const [inline, virtual] |
Level Log4Qt::AppenderSkeleton::threshold | ( | ) | const |
void Log4Qt::AppenderSkeleton::setLayout | ( | Layout * | pLayout | ) | [inline, virtual] |
void Log4Qt::AppenderSkeleton::setName | ( | const QString & | rName | ) | [inline, virtual] |
void Log4Qt::AppenderSkeleton::setThreshold | ( | Level | level | ) | [inline] |
virtual void Log4Qt::AppenderSkeleton::activateOptions | ( | ) | [virtual] |
Reimplemented in Log4Qt::ConsoleAppender, Log4Qt::DailyRollingFileAppender, Log4Qt::FileAppender, and Log4Qt::WriterAppender.
virtual void Log4Qt::AppenderSkeleton::addFilter | ( | Filter * | pFilter | ) | [virtual] |
Implements Log4Qt::Appender.
virtual void Log4Qt::AppenderSkeleton::clearFilters | ( | ) | [virtual] |
Implements Log4Qt::Appender.
virtual void Log4Qt::AppenderSkeleton::close | ( | ) | [virtual] |
Implements Log4Qt::Appender.
Reimplemented in Log4Qt::ConsoleAppender, Log4Qt::FileAppender, and Log4Qt::WriterAppender.
virtual void Log4Qt::AppenderSkeleton::doAppend | ( | const LoggingEvent & | rEvent | ) | [virtual] |
Performs checks and delegates the actuall appending to the subclass specific append() function.
Implements Log4Qt::Appender.
Filter * Log4Qt::AppenderSkeleton::firstFilter | ( | ) | const [inline] |
References filter(), and mObjectGuard.
bool Log4Qt::AppenderSkeleton::isAsSevereAsThreshold | ( | Level | level | ) | const [inline] |
virtual void Log4Qt::AppenderSkeleton::append | ( | const LoggingEvent & | rEvent | ) | [protected, pure virtual] |
virtual bool Log4Qt::AppenderSkeleton::checkEntryConditions | ( | ) | const [protected, virtual] |
Tests if all entry conditions for using append() in this class are met.
If a conditions is not met, an error is logged and the function returns false.
The checked conditions are:
The function is called as part of the checkEntryConditions() chain started by doAppend(). The doAppend() function calls the subclass specific checkEntryConditions() function. The function checks the class specific conditions and calls checkEntryConditions() of it's parent class. The last function called is AppenderSkeleton::checkEntryConditions().
Reimplemented in Log4Qt::DailyRollingFileAppender, Log4Qt::FileAppender, and Log4Qt::WriterAppender.
QMutex Log4Qt::AppenderSkeleton::mObjectGuard [mutable, protected] |
bool Log4Qt::AppenderSkeleton::isActive [inline, read] |
bool Log4Qt::AppenderSkeleton::isClosed [inline, read] |
Level Log4Qt::AppenderSkeleton::threshold [inline, read, write] |