Updated loggin component of QtWebApp to version 1.6.5

This commit is contained in:
Luis Ángel San Martín
2016-06-16 22:16:01 +02:00
parent e6d229680f
commit 1657111621
9 changed files with 162 additions and 91 deletions

View File

@ -9,6 +9,7 @@
#include <QtGlobal>
#include <QDateTime>
#include <QHash>
#include "logglobal.h"
/**
Represents a single log message together with some data
@ -20,16 +21,17 @@
- {typeNr} Type of the message in numeric format (0-3)
- {type} Type of the message in string format (DEBUG, WARNING, CRITICAL, FATAL)
- {thread} ID number of the thread
- {msg} Message text (only useable in msgFormat)
- {file} Filename where the message was generated #
- {function} Function where the message was generated #
- {line} Line number where the message was generated #
- {msg} Message text
- {xxx} For any user-defined logger variable
# The macros qDebug()...qFatal() dont fill these variable in case of QT versions before 5.0.
Plus some new variables since QT 5.0, only filled when compiled in debug mode:
- {file} Filename where the message was generated
- {function} Function where the message was generated
- {line} Line number where the message was generated
*/
class LogMessage
class DECLSPEC LogMessage
{
Q_DISABLE_COPY(LogMessage)
public: