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