You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
523 B
C++
26 lines
523 B
C++
#ifndef LOG_H
|
|
#define LOG_H
|
|
|
|
#include <QFile>
|
|
#include <QMessageLogger>
|
|
#include <qlogging.h>
|
|
#include <QFile>
|
|
#include <QTextStream>
|
|
#include <QDateTime>
|
|
#include <QDir>
|
|
|
|
class LogInfo
|
|
{
|
|
public:
|
|
static void recordLog(QString folderPath);
|
|
private:
|
|
static void logSysInit(QString filePath);
|
|
static void myMessageOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg);
|
|
|
|
static QString m_currtDate;
|
|
static QString m_folderPath;
|
|
static QFile* m_fileLog;
|
|
static char* msgHead[];
|
|
};
|
|
|
|
#endif // LOG_H
|