/base/update/updateservice/services/core/ability/log/src/ |
D | update_log.cpp | 60 void UpdateLog::PrintLongLog(const UpdateLogContent &logContent) in PrintLongLog() argument 62 std::string fmtLabel = GetFmtLabel(logContent.log); in PrintLongLog() 63 std::pair<std::string, std::string> splitLogPair = SplitLogByFmtLabel(logContent.log, fmtLabel); in PrintLongLog() 65 … PrintLog(logContent.BuildWithFmtAndArgs(PUBLIC_FMT_LABEL, splitLogPair.first)); // log前缀不做打印控制 in PrintLongLog() 66 …PrintLog(logContent.BuildWithFmtAndArgs(fmtLabel, logContent.args)); // args采用fmt进行… in PrintLongLog() 67 … PrintLog(logContent.BuildWithFmtAndArgs(PUBLIC_FMT_LABEL, splitLogPair.second)); // log后缀不做打印控制 in PrintLongLog() 70 void UpdateLog::PrintLog(const UpdateLogContent &logContent) in PrintLog() argument 73 int32_t len = static_cast<int32_t>(logContent.args.length()); in PrintLog() 76 PrintSingleLine(logContent.BuildWithArgs(logContent.args.substr(printPos, printLen))); in PrintLog() 81 void UpdateLog::PrintSingleLine(const UpdateLogContent &logContent) in PrintSingleLine() argument [all …]
|
/base/hiviewdfx/hilog_lite/frameworks/js/builtin/src/ |
D | hilog_module.cpp | 44 …::ParseLogContent(const HilogString *formatStr, const HilogVector *params, HilogString *logContent) in ParseLogContent() argument 46 if (formatStr == nullptr || params == nullptr || logContent == nullptr) { in ParseLogContent() 51 HilogString::Puts(HilogString::Get(formatStr), logContent); in ParseLogContent() 65 HilogString::Putc(format[pos], logContent); in ParseLogContent() 84 .logContent = logContent, in ParseLogContent() 89 HilogString::Puts(format + pos, logContent, len - pos); in ParseLogContent() 98 outParams->count == nullptr || outParams->logContent == nullptr) { in AddLogContent() 110 … showPriv ? PRIV_STR : HilogVector::GetStr(params, *(outParams->count)), outParams->logContent); in AddLogContent() 118 … showPriv ? PRIV_STR : HilogVector::GetStr(params, *(outParams->count)), outParams->logContent); in AddLogContent() 127 … showPriv ? PRIV_STR : HilogVector::GetStr(params, *(outParams->count)), outParams->logContent); in AddLogContent() [all …]
|
/base/hiviewdfx/hilog_lite/frameworks/mini/ |
D | hiview_log.c | 112 HiLogContent logContent = { 0 }; in HiLogPrintf() local 124 HiLogCommon *pCommon = &(logContent.commonContent); in HiLogPrintf() 139 logContent.values[i++] = va_arg(args, uint32); in HiLogPrintf() 143 OutputLog((uint8 *)&logContent, sizeof(HiLogCommon) + sizeof(uint32) * argsNum); in HiLogPrintf() 148 HiLogContent logContent = {0}; in HILOG_HashPrintf() local 159 HiLogCommon *pCommon = &(logContent.commonContent); in HILOG_HashPrintf() 174 logContent.values[i++] = va_arg(args, uint32); in HILOG_HashPrintf() 178 OutputLog((uint8 *)&logContent, sizeof(HiLogCommon) + sizeof(uint32) * argsNum); in HILOG_HashPrintf()
|
D | hiview_output_log.c | 211 HiLogContent logContent; in OutputLogRealtime() local 216 while (ReadFromCache(&g_logCache, (uint8 *)&(logContent.commonContent), in OutputLogRealtime() 218 if (logContent.commonContent.head != LOG_INFO_HEAD) { in OutputLogRealtime() 223 len = logContent.commonContent.valueNumber * sizeof(uint32); in OutputLogRealtime() 224 if (len > 0 && ReadFromCache(&g_logCache, (uint8 *)&(logContent.values), len) != len) { in OutputLogRealtime() 227 len = LogContentFmt(tempOutStr, sizeof(tempOutStr), (uint8 *)&logContent); in OutputLogRealtime() 239 HiLogContent logContent; in OutputLog2TextFile() local 248 while (ReadFromCache(&g_logCache, (uint8 *)&(logContent.commonContent), in OutputLog2TextFile() 250 if (logContent.commonContent.head != LOG_INFO_HEAD) { in OutputLog2TextFile() 255 len = logContent.commonContent.valueNumber * sizeof(uint32); in OutputLog2TextFile() [all …]
|
/base/hiviewdfx/hilog_lite/test/unittest/ |
D | hilog_lite_test.cpp | 90 ACELite::HilogString logContent; in HWTEST_F() local 95 ACELite::HilogModule::ParseLogContent(&fmtStringBuffer, ¶ms, &logContent); in HWTEST_F() 96 EXPECT_TRUE(strcmp(logContent.str, finalValue) == RET_OK); in HWTEST_F() 112 ACELite::HilogString logContent; in HWTEST_F() local 117 ACELite::HilogModule::ParseLogContent(&fmtStringBuffer, ¶ms, &logContent); in HWTEST_F() 118 EXPECT_TRUE(strcmp(logContent.str, finalValue) == RET_OK); in HWTEST_F() 134 ACELite::HilogString logContent; in HWTEST_F() local 139 ACELite::HilogModule::ParseLogContent(&fmtStringBuffer, ¶ms, &logContent); in HWTEST_F() 140 EXPECT_TRUE(strcmp(logContent.str, finalValue) == RET_OK); in HWTEST_F() 156 ACELite::HilogString logContent; in HWTEST_F() local [all …]
|
/base/hiviewdfx/hilog_lite/frameworks/js/builtin/include/ |
D | hilog_module.h | 30 HilogString *logContent; member 49 … ParseLogContent(const HilogString *formatStr, const HilogVector *params, HilogString *logContent);
|
/base/update/updateservice/services/core/ability/log/include/ |
D | update_log.h | 64 static void PrintLongLog(const UpdateLogContent &logContent); 67 static void PrintLog(const UpdateLogContent &logContent); 68 static void PrintSingleLine(const UpdateLogContent &logContent);
|
/base/hiviewdfx/hilog/interfaces/js/kits/napi/src/hilog/src/ |
D | hilog_napi_base.cpp | 43 void ParseLogContent(string& formatStr, vector<napiParam>& params, string& logContent) in ParseLogContent() argument 45 string& ret = logContent; in ParseLogContent() 241 string logContent; in HilogImpl() local 269 ParseLogContent(fmtString, params, logContent); in HilogImpl() 270 …FAULT_LOG_TYPE, static_cast<LogLevel>(level), domain, tag.get(), "%{public}s", logContent.c_str()); in HilogImpl()
|