mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-03 04:41:05 +00: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
|