#ifndef LOGMANAGER_H #define LOGMANAGER_H #include #include #include class LogManager : public QObject { Q_OBJECT public: static LogManager &instance() { static LogManager instance; return instance; } // Standard logging void addEntry(const QString &entry); void addError(const QString &error); void addLine(); // Debug logging - only logs if debug mode enabled void debug(const QString &entry); // Set debug mode checker (called from Settings initialization) void setDebugChecker(std::function checker); signals: void entryAdded(const QString &entry); private: LogManager() : m_debugChecker(nullptr) {} ~LogManager() {} std::function m_debugChecker; Q_DISABLE_COPY(LogManager) }; #endif // LOGMANAGER_H