📄 logger.h
字号:
#ifndef LOGGER_H
#define LOGGER_H
#include <string>
#include <fstream>
using namespace std;
class Logger
{
public:
Logger() {
}
~Logger() {
}
static void log(const string &msg, int logType);
static void log(const string &msg, const string &file);
static const int ERROR;
static const int DEBUG;
static string timestamp();
private:
static bool openLog(fstream &file, const string &name);
static void closeLog(fstream &file);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -