gpt4all/gpt4all-chat/logger.h

19 lines
309 B
C
Raw Normal View History

2023-06-01 14:50:42 +00:00
#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