#ifndef ILOGCPP_H #define ILOGCPP_H #include "ILog.h" #include class ILogCpp { public: ILogCpp() = default; virtual ~ILogCpp() = default; static std::shared_ptr &GetInstance(std::shared_ptr *impl = nullptr); virtual void Init(const enum LogInstance &log) {} virtual void UnInit(void) {} virtual int Log(const char *buff) { return 0; } virtual int InFo(const char *buff) { return 0; } virtual int Warning(const char *buff) { return 0; } virtual int Error(const char *buff) { return 0; } virtual int Trace(const char *buff) { return 0; } virtual int Debug(const char *buff) { return 0; } }; #endif