v2.0.0
Loading...
Searching...
No Matches
mne_logger.h
Go to the documentation of this file.
1//=============================================================================================================
25
26#ifndef MNE_LOGGER_H
27#define MNE_LOGGER_H
28
29//=============================================================================================================
30// INCLUDES
31//=============================================================================================================
32
33#include "../utils_global.h"
34#include <mutex>
35
36//=============================================================================================================
37// QT INCLUDES
38//=============================================================================================================
39
40#include <QSharedPointer>
41#include <QMutex>
42
43//=============================================================================================================
44// DEFINE NAMESPACE UTILSLIB
45//=============================================================================================================
46
47namespace UTILSLIB
48{
49
50//=============================================================================================================
59{
60public:
61 //=========================================================================================================
69 static void customLogWriter(QtMsgType type, const QMessageLogContext& context, const QString& msg);
70
71 //=========================================================================================================
83 static bool setLogFile(const QString& sFilePath);
84
85 //=========================================================================================================
91 static QString logFile();
92
93private:
94 static std::mutex m_mutex;
95 static QString m_sLogFilePath;
96};
97}
98#endif // MNE_LOGGER_H
Public umbrella header for UTILSLIB exposing the UTILSSHARED_EXPORT macro and build-info accessors.
#define UTILSSHARED_EXPORT
Shared utilities (I/O helpers, spectral analysis, layout management, warp algorithms).
Custom Qt message handler that formats and routes qDebug/qWarning/qCritical output to file or console...
Definition mne_logger.h:59
static void customLogWriter(QtMsgType type, const QMessageLogContext &context, const QString &msg)
static bool setLogFile(const QString &sFilePath)
static QString logFile()