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.

22 lines
428 B

2 years ago
#ifndef LOGHANDLER_H
#define LOGHANDLER_H
11 months ago
#include <QObject>
2 years ago
11 months ago
class Q_DECL_EXPORT LogHandler
2 years ago
{
public:
void installMessageHandler(); // 给Qt安装消息处理函数
void uninstallMessageHandler(); // 取消安装消息处理函数并释放资源
static LogHandler& Get()
{
static LogHandler m_logHandler;
return m_logHandler;
}
private:
LogHandler(){};
2 years ago
};
#endif // LOGHANDLER_H