gpt4all/gpt4all-chat/logger.h

22 lines
350 B
C
Raw Normal View History

2023-06-01 14:50:42 +00:00
#ifndef LOGGER_H
#define LOGGER_H
2023-06-01 14:50:42 +00:00
#include <QFile>
#include <QString>
#include <QtLogging>
2023-06-01 14:50:42 +00:00
class Logger
{
QFile m_file;
static void messageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg);
public:
static Logger *globalInstance();
explicit Logger();
friend class MyLogger;
};
#endif // LOGGER_H