DatabaseLogger Class Reference

This class write Qxt logging messages to a database table. More...

#include <Logging.h>

List of all members.

Public Member Functions

 DatabaseLogger (QString databaseName, QString logFileName, QString tableName)
virtual void createTable ()
 Creates the table to write messages to.
virtual void initLoggerEngine ()
 This initialises the logger engine.
virtual void killLoggerEngine ()
 This termiantes the logger engine.
virtual bool isInitialized () const
QString dbname () const
QString loggerName () const
virtual void writeFormatted (QxtLogger::LogLevel level, const QList< QVariant > &msgs)

Private Attributes

QString _dbname
QString _loggerName
QString _tableName


Detailed Description

This class write Qxt logging messages to a database table.

This is a QxtLoggerEngine class that interfaces between QxtLogger and a database. Messages are stored in a tabel with the following fields: LOG_TIMESTAMP (time stamp), LOG_LEVEL (the Qxt logging level) and LOG_MESSAGE (the message text)

Author:
B. J. Hill
Date:

The documentation for this class was generated from the following files:

doxygen