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.
37 lines
1.0 KiB
37 lines
1.0 KiB
#ifndef SW_LOG_H
|
|
#define SW_LOG_H
|
|
|
|
#include <QString>
|
|
#include <QtDebug>
|
|
|
|
class SW_Log
|
|
{
|
|
public:
|
|
static void Create(const QString& appPath,const QString appInfo="");
|
|
static SW_Log* Get();
|
|
static void Destroy();
|
|
|
|
void error(const char *message);
|
|
void error(const QString &message);
|
|
void warning(const char *message);
|
|
void warning(const QString &message);
|
|
void debug(const char *message);
|
|
void debug(const QString &message);
|
|
void info(const char *message);
|
|
void info(const QString &message);
|
|
|
|
QString GetUserDir();
|
|
QString GetConfFile();
|
|
QString GetEnvUserDir();
|
|
|
|
protected:
|
|
SW_Log();
|
|
~SW_Log();
|
|
private:
|
|
static QString m_appInfo;
|
|
QString m_userDir;
|
|
QString m_envUserDir;
|
|
QString m_confFile;
|
|
};
|
|
#endif // SW_LOG_H
|