#include <log.hh>
Inheritance diagram for Qmms::Log::FileAppender::

Public Methods | |
| FileAppender () | |
| Default constructor does nothing. More... | |
| FileAppender (const QString &name) | |
| Constructor. More... | |
| FileAppender (const QString &name, Layout *lyt, QString fname) | |
| Constructor. More... | |
| ~FileAppender () | |
| Destructor. More... | |
| virtual QString | getFilename () const |
| Accessor method. More... | |
| virtual void | open (QString &name) |
| Opens output stream to log file whose name is given in in argument. More... | |
| void | setFile (QString fname) |
| Closes existing stream to logfile (if any), sets log file name to the given one, and opens stream to this new file. More... | |
| uint | getFileSize () const |
| Returns size log file in bytes. More... | |
| virtual void | subAppend (LoggingEvent *evnt) |
| Logs the event immediately with no further checks of any kind. More... | |
| void | setDirectory (QString dir) |
| Not implemented yet. More... | |
| QDir | getDirectory () const |
| Not implemented yet. More... | |
Protected Attributes | |
| QString | fileName |
| The name of the file to log to. More... | |
| QDir | directory |
| The directory of the file to log to. More... | |
|
|
Default constructor does nothing.
|
|
|
Constructor. Does not open outputstream to file.
|
|
||||||||||||||||
|
Constructor. Opens output stream to logfile, sets layout.
|
|
|
Destructor. Closes output stream. |
|
|
Not implemented yet.
|
|
|
Accessor method.
|
|
|
Returns size log file in bytes.
|
|
|
Opens output stream to log file whose name is given in in argument.
Reimplemented from Qmms::Log::StreamAppender. |
|
|
Not implemented yet.
|
|
|
Closes existing stream to logfile (if any), sets log file name to the given one, and opens stream to this new file.
|
|
|
Logs the event immediately with no further checks of any kind. Recall again the order of things:
Reimplemented from Qmms::Log::StreamAppender. Reimplemented in Qmms::Log::RollingFileAppender. |
|
|
The directory of the file to log to.
|
|
|
The name of the file to log to.
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001