QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
qetlogger.cpp File Reference
#include "qetlogger.h"
#include "crashhandler.h"
#include "../qetapp.h"
#include "../qetversion.h"
#include <QDateTime>
#include <QDir>
#include <QFileInfo>
#include <QSysInfo>
#include <cstdio>
Include dependency graph for qetlogger.cpp:

Classes

struct  anonymous_namespace{qetlogger.cpp}::ReentrancyGuard
 ReentrancyGuard Sets the referenced flag on construction, clears it on destruction (including via early return / exception unwinding). Used as the per-thread guard against the logger recursing into itself. More...

Namespaces

namespace  anonymous_namespace{qetlogger.cpp}

Functions

void anonymous_namespace{qetlogger.cpp}::legacyStderrOutput (QtMsgType type, const QMessageLogContext &context, const QString &msg)
 legacyStderrOutput The QET_LOG_DISABLE=1 escape hatch. Deliberately independent of every other function in this file – including sanitize()/ formatLine(), which are exactly the new code a problem might be in – so this path stays usable even if the rest of the rework misbehaves. No ring, no file, no rotation, no mutex.