25 #ifndef ZBLLOGWORKER_H 26 #define ZBLLOGWORKER_H 30 #include <QTextStream> 31 #include <QVariantMap> 79 bool zInit(
const QString& logSource,
113 QString creationTime,
114 QByteArray creationZone);
202 #endif // ZBLLOGWORKER_H The Zuble Log Manager is a singleton object that controls logging in Zuble applications.
QString m_logSource
String that will be written to the "source" field of the log file.
QString m_hostVersionBulid
Build name of the host executable application.
quint64 m_nextRecordNumber
A running counter to generate log record numbers.
QString m_hostName
Name of the host executable application.
ZTableModel * m_logBuffer
Pointer to the log manager's log record histogram buffer.
int m_hostVersionMinor
Minor version of the host executable application.
QString formatTextMessage(const ZblLogMessage &msg)
This class provides a thread-safe log message back end for the Zuble log manager. ...
int m_hostVersionMajor
Major version of the host executable application.
void outputJsonMessage(const ZblLogMessage &msg)
void outputParametersUpdated(QVariant logParams)
ZblLogParams m_logParam
Zuble logging output parameters.
bool writeFileInformation(QFile &logFile, QString creationTime, QByteArray creationZone)
QString m_appName
Application name that will be written to log file.
QTextStream m_outputStream
The log output stream object.
void outputLogMessage(QVariant message)
Outputs a log message to the log histogram buffer and/or a file and/or stdout.
bool m_outFileActive
true if output file object is opened and accepting data, false otherwise.
This two dimensional table model is used to store and manipulate data.
void outputTextMessage(const ZblLogMessage &msg)
This class contains the Zuble logging parameters that control log output.
ZblLogWorker(QObject *parent=0)
bool zInit(const QString &logSource, ZTableModel *logBuffer)
Initializes the ZblLogWorker object. This method should be called after the ZblLogWorker object has b...
QFile m_outputFile
The log output file object.
int m_hostVersionPatch
Patch version of the host executable application.
void setOutputParameters(QVariant logParams)
Sets the output parameters for the log worker object.
This class is used to transfer log messages between threads.