logs_utils.cpp 290 B

1234567891011
  1. #include "logs_utils.h"
  2. #include "utils.h"
  3. #include "zf_log.h"
  4. #include <string>
  5. void ZF_LOGV_LR(const char *desc, std::string &buffer, int len) {
  6. ZF_LOGV("%s", desc);
  7. for (size_t i = 0; i < buffer.length(); i += len) {
  8. ZF_LOGV("%s", logrepr(buffer.substr(i, len).c_str()));
  9. }
  10. }