log.h 433 B

123456789101112131415161718192021222324
  1. #ifndef __LOGGING_H__
  2. #define __LOGGING_H__
  3. // #define USING_ASYNC_LOG_MODE // using sync log sink for debug reason
  4. #include <string>
  5. #include "../publicExport.h"
  6. class PUBLIC_API logger {
  7. private:
  8. logger() {};
  9. public:
  10. // functions
  11. static bool init(std::string strLogPath, std::string strLogName);
  12. static void stop();
  13. static void update_rotation_time();
  14. static void showLog(std::string msg);
  15. };
  16. #endif // __LOGGING_H__