mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-08 07:10:32 +00:00
d3d777bc51
Also use qGuiApp instead of qApp. Signed-off-by: Jared Van Bortel <jared@nomic.ai>
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
|