mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-09-11 13:25:35 +03:00
22 lines
350 B
C++
22 lines
350 B
C++
#ifndef LOGGER_H
|
|
#define LOGGER_H
|
|
|
|
#include <QFile>
|
|
#include <QString>
|
|
#include <QtLogging>
|
|
|
|
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
|