#include <log.hh>
Inheritance diagram for Qmms::Log::ConsoleAppender::
Public Methods | |
ConsoleAppender () | |
Default constructor does nothing. More... | |
ConsoleAppender (const QString &name) | |
Constructor. More... | |
ConsoleAppender (const QString &name, Layout *lyt) | |
Constructor. More... | |
ConsoleAppender (const QString &name, Layout *lyt, const QString &tget) | |
Constructor. More... | |
~ConsoleAppender () | |
Destructor. More... | |
void | setTarget (const QString &tget) |
Sets the value of the property variable target and opens the appropriate stream, either std::stdout or std::stderr. More... | |
QString | getTarget () const |
Accessor method. More... | |
void | open (QString &name) |
Calls setTarget() with parameter name. More... | |
Protected Attributes | |
QString | target |
Holds either one of the strings "stdout" or "stderr". More... | |
Static Protected Attributes | |
const QString | STDOUT |
The string "stdout". More... | |
const QString | STDERR |
The string "stderr". More... |
Notice that ConsoleAppender implements neither append() nor subAppend() but instead simply uses the base class methods of the same names.
|
Default constructor does nothing.
|
|
Constructor. Sets target to stdout and passes param to base class.
|
|
Constructor. Sets target to stdout and passes both params to base class constructor. |
|
Constructor. Sets target to value of paramater tget, passes other two params to base class constructor. |
|
Destructor. Calls close(). |
|
Accessor method.
|
|
Calls setTarget() with parameter name.
Reimplemented from Qmms::Log::StreamAppender. |
|
Sets the value of the property variable target and opens the appropriate stream, either std::stdout or std::stderr.
|
|
The string "stderr".
|
|
The string "stdout".
|
|
Holds either one of the strings "stdout" or "stderr".
|