This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2023-05-08 23:38:34 +02:00

32 lines
668 B
C++

#ifndef LOGGER_H
#define LOGGER_H
#include <QStringList>
#include <QVariant>
#include "typeutils.h"
class LogEngine;
class Logger
{
public:
QString name() const;
QStringList tagNames() const;
Types::LoggingType loggingType() const;
void log(const QStringList &tags, const QVariantMap &values);
private:
friend class LogEngine;
Logger(LogEngine *engine, const QString &name, const QStringList &tagNames, Types::LoggingType loggingType);
LogEngine *m_engine = nullptr;
QString m_name;
QStringList m_tagNames;
Types::LoggingType m_loggingType = Types::LoggingTypeDiscrete;
};
Q_DECLARE_METATYPE(Logger*)
#endif // LOGGER_H