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.
40 lines
768 B
C
40 lines
768 B
C
|
6 hours ago
|
#pragma once
|
||
|
|
|
||
|
|
#include <QObject>
|
||
|
|
#include <QString>
|
||
|
|
#include <fstream>
|
||
|
|
#include <string>
|
||
|
|
#include <iostream>
|
||
|
|
#include <ctime>
|
||
|
|
#include <sstream>
|
||
|
|
#include <iomanip>
|
||
|
|
#include <chrono>
|
||
|
|
#include <vector>
|
||
|
|
|
||
|
|
class _declspec(dllexport) QtLoggerManage
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
enum QtLogType
|
||
|
|
{
|
||
|
|
QtRunLog = 0,
|
||
|
|
QtExceptionLog,
|
||
|
|
QtDataLog,
|
||
|
|
QtPELog,
|
||
|
|
};
|
||
|
|
public:
|
||
|
|
QtLoggerManage();
|
||
|
|
~QtLoggerManage();
|
||
|
|
|
||
|
|
public:
|
||
|
|
void AddLog(QtLogType logType, std::string listName, QStringList list);
|
||
|
|
void AddLog(QtLogType logType, std::string logName, std::string logContent);
|
||
|
|
void AddLog(QtLogType logType, std::string logContent);
|
||
|
|
void AddLog(QtLogType logType, std::string DataName, std::vector<char>& dataContent);
|
||
|
|
|
||
|
|
public:
|
||
|
|
void InitLogger(std::string logDir);
|
||
|
|
|
||
|
|
private:
|
||
|
|
std::string m_logDir;
|
||
|
|
};
|