#include <log.hh>
Inheritance diagram for Qmms::Log::AppenderSkeleton::
Public Methods | |
AppenderSkeleton () | |
Default constructor does nothing. More... | |
AppenderSkeleton (const QString &name) | |
Constructor. More... | |
virtual | ~AppenderSkeleton () |
Destructor. More... | |
virtual void | append (LoggingEvent *evnt)=0 |
Takes a LoggingEvent and writes it in the appropriate fashion. More... | |
virtual bool | checkEntryConditions () const=0 |
Used to check that the appender is ready to append. More... | |
void | doAppend (LoggingEvent *evnt) |
Calls append() after first checking that certain conditions are met. More... | |
void | setName (const QString &name) |
Accessor method Sets the name of this Appender. More... | |
QString | getName () const |
Accessor method. More... | |
void | setThreshold (const QString &thold) |
Accessor method Sets the threshold for this Appender. More... | |
QString | getThreshold () const |
Accessor method. More... | |
bool | isAsSevereAsThreshold (const QString lvl) const |
Compares a given loglevel against the Appender's threshold, if any. More... | |
virtual bool | requiresLayout () const=0 |
Subclasses implement this to return the appropriate value depending on whether they require a layout or not. More... | |
Protected Attributes | |
QString | name |
The name of this Appender. More... | |
QString | threshold |
The threshold (if any) of this Appender. More... |
This is a true abstract class since it actually defines some methods and members. Subclasses must of course implement the purely virtual methods.
|
Default constructor does nothing.
|
|
Constructor.
|
|
Destructor.
|
|
Takes a LoggingEvent and writes it in the appropriate fashion. Subclasses must implement this method in an appender-specific manner. This method is usually called from doAppend(), because doAppend checks that the threshold (if any) of the appender is not less than the loglevel of the calling category.
Reimplemented in Qmms::Log::LayoutAppender, and Qmms::Log::SMTPAppender. |
|
Used to check that the appender is ready to append. Subclasses must implement this method.
Reimplemented in Qmms::Log::LayoutAppender, Qmms::Log::StreamAppender, and Qmms::Log::SMTPAppender. |
|
Calls append() after first checking that certain conditions are met. Usually called from callAppenders() in Category.
Reimplemented from Qmms::Log::Appender. |
|
Accessor method.
Reimplemented from Qmms::Log::Appender. |
|
Accessor method.
|
|
Compares a given loglevel against the Appender's threshold, if any.
|
|
Subclasses implement this to return the appropriate value depending on whether they require a layout or not.
Reimplemented in Qmms::Log::LayoutAppender, Qmms::Log::StreamAppender, and Qmms::Log::SMTPAppender. |
|
Accessor method Sets the name of this Appender.
Reimplemented from Qmms::Log::Appender. |
|
Accessor method Sets the threshold for this Appender.
|
|
The name of this Appender.
|
|
The threshold (if any) of this Appender.
|