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