mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-08 11:58:53 +00:00
Implemented logging mechanism (#785)
This commit is contained in:
18
gpt4all-chat/logger.h
Normal file
18
gpt4all-chat/logger.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#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
|
Reference in New Issue
Block a user