hunting/utils/Logold/src/LogEasylogging.h
2023-09-08 08:04:15 -07:00

24 lines
684 B
C++

#ifndef LOG_EASYLOGGING_H
#define LOG_EASYLOGGING_H
#include "ILog.h"
#include "Log.h"
class LogEasylogging : public ILog
{
public:
LogEasylogging(const LogSetting *setting);
virtual ~LogEasylogging() = default;
bool Init() override;
bool UnInit() override;
bool IsWorking() override;
int Log(const char *buff) override;
int InFo(const char *buff) override;
int Warning(const char *buff) override;
int Error(const char *buff) override;
int Trace(const char *buff) override;
int Debug(const char *buff) override;
private:
std::string mFileName; // File name of saving log.
std::string mMaxSize; // Max size of saving log.
};
#endif