mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-16 06:13:09 +00:00
19 lines
309 B
C++
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
|