v2.0.0
Loading...
Searching...
No Matches
applicationlogger.h
Go to the documentation of this file.
1//=============================================================================================================
35
36#ifndef APPLICATIONLOGGER_H
37#define APPLICATIONLOGGER_H
38
39//=============================================================================================================
40// INCLUDES
41//=============================================================================================================
42
43#include "../utils_global.h"
44#include <mutex>
45
46//=============================================================================================================
47// QT INCLUDES
48//=============================================================================================================
49
50#include <QSharedPointer>
51#include <QMutex>
52
53//=============================================================================================================
54// DEFINE NAMESPACE UTILSLIB
55//=============================================================================================================
56
57namespace UTILSLIB
58{
59
60//=============================================================================================================
67{
68public:
69 //=========================================================================================================
77 static void customLogWriter(QtMsgType type, const QMessageLogContext &context, const QString &msg);
78
79private:
80 static std::mutex m_mutex;
81};
82}
83#endif // APPLICATIONLOGGER_H
utils library export/import macros.
#define UTILSSHARED_EXPORT
Shared utilities (I/O helpers, spectral analysis, layout management, warp algorithms).
Definition buildinfo.h:45
Custom Qt message handler that formats and routes qDebug/qWarning/qCritical output to file or console...
static void customLogWriter(QtMsgType type, const QMessageLogContext &context, const QString &msg)