#include <consoleappender.h>

Public Types | |
| enum | Target { STDOUT_TARGET, STDERR_TARGET } |
Public Member Functions | |
| ConsoleAppender (QObject *pParent=0) | |
| ConsoleAppender (Layout *pLayout, QObject *pParent=0) | |
| ConsoleAppender (Layout *pLayout, const QString &rTarget, QObject *pParent=0) | |
| ConsoleAppender (Layout *pLayout, Target target, QObject *pParent=0) | |
| virtual | ~ConsoleAppender () |
| QString | target () const |
| void | setTarget (const QString &rTarget) |
| void | setTarget (Target target) |
| virtual void | activateOptions () |
| virtual void | close () |
Protected Member Functions | |
| void | closeStream () |
| virtual QDebug | debug (QDebug &rDebug) const |
Properties | |
| QString | target |
The ownership and lifetime of objects of this class are managed. See Object ownership for more details.
| Log4Qt::ConsoleAppender::ConsoleAppender | ( | QObject * | pParent = 0 |
) |
| Log4Qt::ConsoleAppender::ConsoleAppender | ( | Layout * | pLayout, | |
| QObject * | pParent = 0 | |||
| ) |
| Log4Qt::ConsoleAppender::ConsoleAppender | ( | Layout * | pLayout, | |
| const QString & | rTarget, | |||
| QObject * | pParent = 0 | |||
| ) |
Creates a ConsoleAppender with the layout pLayout, the target value specified by the target constant and the parent pParent.
| virtual Log4Qt::ConsoleAppender::~ConsoleAppender | ( | ) | [virtual] |
| QString Log4Qt::ConsoleAppender::target | ( | ) | const |
| void Log4Qt::ConsoleAppender::setTarget | ( | const QString & | rTarget | ) |
| void Log4Qt::ConsoleAppender::setTarget | ( | Target | target | ) | [inline] |
Sets the target to the value specified by the target constant.
| virtual void Log4Qt::ConsoleAppender::activateOptions | ( | ) | [virtual] |
Reimplemented from Log4Qt::WriterAppender.
| virtual void Log4Qt::ConsoleAppender::close | ( | ) | [virtual] |
Reimplemented from Log4Qt::WriterAppender.
| void Log4Qt::ConsoleAppender::closeStream | ( | ) | [protected] |
| virtual QDebug Log4Qt::ConsoleAppender::debug | ( | QDebug & | rDebug | ) | const [protected, virtual] |
Writes all object member variables to the given debug stream rDebug and returns the stream.
ConsoleAppender(name:"CA" filter:0x0 isactive:true isclosed:false layout:"PL" target:"STDERR" referenceCount:1 threshold:"WARN_SET")
Reimplemented from Log4Qt::WriterAppender.
QString Log4Qt::ConsoleAppender::target [read, write] |
The property holds the target used by the appender.
The default is STDOUT_TARGET for the standard output.
1.5.6