You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
510 B

#ifndef CSCI_LOG_HANDLER_H
#define CSCI_LOG_HANDLER_H
#include <QDir>
#include <QMutex>
#include <QObject>
#include <QDateTime>
#include <QTextStream>
#include <QCoreApplication>
#include "../config/log_config.h"
class LogHandler : public QObject{
Q_OBJECT
private:
static void _log(QtMsgType msgType, const QMessageLogContext &context, const QString &msg);
static void _clear();
static void _write(const QString& message);
public:
static void init();
};
#endif //CSCI_LOG_HANDLER_H