Out-of-line definition of the colourised, thread-safe qInstallMessageHandler installed by UTILSLIB::MNELogger.
More...
#include <iostream>#include <string>#include "mne_logger.h"#include <QtGlobal>#include <QDateTime>#include <QMutexLocker>
Go to the source code of this file.
Macros | |
| #define | COLOR_INFO "\033[32;1m" |
| #define | COLOR_DEBUG "\033[32;1m" |
| #define | COLOR_WARN "\033[33;1m" |
| #define | COLOR_CRITICAL "\033[31;1m" |
| #define | COLOR_FATAL "\033[33;1m" |
| #define | COLOR_RESET "\033[0m" |
Out-of-line definition of the colourised, thread-safe qInstallMessageHandler installed by UTILSLIB::MNELogger.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
Holds the std::mutex used to serialise the writes to stderr so log lines from different worker threads never interleave inside one record. ANSI escape sequences are emitted unconditionally; consumers that pipe the output to a file or to the Windows Event Log are expected to strip them.
Definition in file mne_logger.cpp.
| #define COLOR_CRITICAL "\033[31;1m" |
Definition at line 58 of file mne_logger.cpp.
| #define COLOR_DEBUG "\033[32;1m" |
Definition at line 56 of file mne_logger.cpp.
| #define COLOR_FATAL "\033[33;1m" |
Definition at line 59 of file mne_logger.cpp.
| #define COLOR_INFO "\033[32;1m" |
Definition at line 55 of file mne_logger.cpp.
| #define COLOR_RESET "\033[0m" |
Definition at line 60 of file mne_logger.cpp.
| #define COLOR_WARN "\033[33;1m" |
Definition at line 57 of file mne_logger.cpp.