mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04: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
|