#ifndef LOG_H #define LOG_H #include #include #include #define LOG_FILE_NAME QCoreApplication::applicationDirPath() + QString("\\Log\\") + QDateTime::currentDateTime().toString("yyyy-MM-dd") + QString(".log") static int s_logLevel = 0; static QMutex s_logMutex; static QString s_logPath; void setLogPath(const QString &path); void setLogLevel(int level); //void customLogMessageHandler(QtMsgType type, const QMessageLogContext& ctx, const QString& msg); void customLogMessageHandler(QtMsgType type, const QString& msg); #endif // LOG_H