#include <Logging.h>
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 |
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)