log_module.h 579 B

12345678910111213141516171819
  1. #ifndef LOG_MODULE_H
  2. #define LOG_MODULE_H
  3. #include "../stdafx.h"
  4. #include "MyLog.h"
  5. extern std::vector<std::shared_ptr<MyLog>> vtLog;
  6. extern std::map<std::string,std::shared_ptr<MyLog>> mpLog;
  7. namespace Log{
  8. int init_log_module();
  9. int write_log(FILE_TYPE fileType,const std::string& content);
  10. int write_log(FILE_TYPE fileType,const std::string& content,bool status);
  11. int write_log(FILE_TYPE fileType,const char* pValue);
  12. int write_log(FILE_TYPE fileType,const char* pValue,bool status);
  13. //int write_log(FILE_TYPE fileType,const char* pValue,...);
  14. int clear();
  15. };
  16. #endif