Home · Modules · Classes · Namespaces · Functions

QxtBasicSTDLoggerEngine Class Reference
[QxtCore module]

The QxtBasicSTDLoggerEngine class provides a basic STD logger engine. More...

    #include <QxtBasicSTDLoggerEngine>

Inherits QxtLoggerEngine.

Public Functions

Protected Functions


Detailed Description

The QxtBasicSTDLoggerEngine class provides a basic STD logger engine.

Example basic STD log output:

    [22:38:33.159] [Error] Unknown error
    [22:51:43.488] [Debug] What's going on?
                           Hi there!

See also QxtLogger.


Member Function Documentation

QxtBasicSTDLoggerEngine::QxtBasicSTDLoggerEngine ()

Constructor.

QxtBasicSTDLoggerEngine::~QxtBasicSTDLoggerEngine ()

Destructor.

void QxtBasicSTDLoggerEngine::setLogLevelEnabled ( QxtLogger::LogLevels level, bool enable = true )

Enables level if enable is true, disables otherwise.

QTextStream * QxtBasicSTDLoggerEngine::stdErrStream () const

Returns the stderr stream.

QTextStream * QxtBasicSTDLoggerEngine::stdOutStream () const

Returns the stdout stream.

void QxtBasicSTDLoggerEngine::writeToStdErr ( const QString & level, const QList<QVariant> & msgs )   [virtual protected]

A helper function that actually writes msgs to stderr with given level.

This function is called by QxtBasicSTDLoggerEngine. Reimplement this function when creating a subclass of QxtBasicSTDLoggerEngine.

void QxtBasicSTDLoggerEngine::writeToStdOut ( const QString & level, const QList<QVariant> & msgs )   [virtual protected]

A helper function that actually writes msgs to stdout with given level.

This function is called by QxtBasicSTDLoggerEngine. Reimplement this function when creating a subclass of QxtBasicSTDLoggerEngine.


Copyright © 2007-2011 Qxt Foundation
Qxt 0.6.2