123456789101112131415161718192021222324 |
- #ifndef __LOGGING_H__
- #define __LOGGING_H__
- // #define USING_ASYNC_LOG_MODE // using sync log sink for debug reason
- #include <string>
- #include "../publicExport.h"
- class PUBLIC_API logger {
- private:
- logger() {};
- public:
- // functions
- static bool init(std::string strLogPath, std::string strLogName);
- static void stop();
- static void update_rotation_time();
- static void showLog(std::string msg);
- };
- #endif // __LOGGING_H__
|