gpt4all/gpt4all-chat/logger.h
2023-06-01 16:50:42 +02:00

19 lines
309 B
C++

#ifndef LOGGER_H
#define LOGGER_H
#include <QFile>
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