#include <log.hh>
Inheritance diagram for Qmms::Log::StreamAppender::
Public Methods | |
StreamAppender () | |
Default constructor does nothing. More... | |
StreamAppender (const QString &name) | |
Constructor. More... | |
StreamAppender (const QString &name, Layout *lyt) | |
Constructor. More... | |
virtual | ~StreamAppender () |
Destructor does nothing. More... | |
virtual void | subAppend (LoggingEvent *evnt) |
Logs the event immediately with no further checks of any kind. More... | |
virtual bool | checkEntryConditions () const |
Checks that the output stream is open, after calling base class's checkEntryConditions() first. More... | |
virtual void | open (QString &name)=0 |
Pure virtual function that is used to open the stream when subclassed. More... | |
virtual void | close () |
Closes the appending stream. More... | |
bool | requiresLayout () const |
Specifies whether this Appender requires a Layout. More... | |
bool | getImmediateFlush () const |
void | setImmediateFlush (const bool flush) |
Sets the value of the property variable immediateFlush. More... | |
Protected Attributes | |
bool | immediateFlush |
Determines whether to flush immediately upon logging or to cache events until explicitly flushed. More... | |
QFile | out |
The "stream" to which to append LoggingEvents. More... |
Appends log events to a QFile, which can point to any stream. Must be subclassed! Extends the abstract class AppenderSkeleton.
|
Default constructor does nothing.
|
|
Constructor.
Passes
|
|
Constructor. Passes both params to base class contructors. |
|
Destructor does nothing.
|
|
Checks that the output stream is open, after calling base class's checkEntryConditions() first.
Reimplemented from Qmms::Log::LayoutAppender. |
|
Closes the appending stream.
Reimplemented from Qmms::Log::Appender. |
|
|
|
Pure virtual function that is used to open the stream when subclassed.
Reimplemented in Qmms::Log::ConsoleAppender, and Qmms::Log::FileAppender. |
|
Specifies whether this Appender requires a Layout.
Reimplemented from Qmms::Log::LayoutAppender. |
|
Sets the value of the property variable immediateFlush.
|
|
Logs the event immediately with no further checks of any kind. Recall the order of things:
Reimplemented from Qmms::Log::LayoutAppender. Reimplemented in Qmms::Log::FileAppender, and Qmms::Log::RollingFileAppender. |
|
Determines whether to flush immediately upon logging or to cache events until explicitly flushed. This is set to true in the constructor so that subclasses needn't worry about it unless they wish to delay flushing of their output streams. |
|
The "stream" to which to append LoggingEvents. We use a QFile so that we may write to any of the standard streams. |