log_util.h 698 B

123456789101112131415161718192021222324252627282930
  1. #ifndef LIBLOG_UTIL_H
  2. #define LIBLOG_UTIL_H
  3. #include "log_define.h"
  4. #include "time.h"
  5. LOG_CPP_START
  6. #ifndef MAX_UUID_LEN
  7. #define MAX_UUID_LEN 64
  8. #endif
  9. void md5_to_string(const char * buffer, int bufLen, char * md5);
  10. //int signature_to_base64(const char * sig, int sigLen, const char * key, int keyLen, char * base64);
  11. void get_format_uuid(char* strbuffer, int ulen);
  12. int GetLocalIP(char* ip_str);
  13. void GetTimeStr(time_t time, char* szTime);
  14. void GetUnitedTimeStr(time_t time, char* szTime);
  15. void convertUnCharTotr(char* str, unsigned char* UnChar, int ucLen);
  16. void convertStrToUnChar(char* str, unsigned char* UnChar);
  17. int mkdir_foreach(char* file_path, int length);
  18. LOG_CPP_END
  19. #endif