Home
last modified time | relevance | path

Searched refs:logType (Results 1 – 25 of 28) sorted by relevance

12

/base/hiviewdfx/hiview/adapter/service/idl/src/
Dhiview_service_agent.cpp40 int32_t HiviewServiceAgent::List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos) in List() argument
48 return proxy.List(logType, fileInfos); in List()
51 int32_t HiviewServiceAgent::Copy(const std::string& logType, const std::string& logName, const std:… in Copy() argument
53 return CopyOrMoveFile(logType, logName, dest, false); in Copy()
56 int32_t HiviewServiceAgent::Move(const std::string& logType, const std::string& logName, const std:… in Move() argument
58 return CopyOrMoveFile(logType, logName, dest, true); in Move()
62 const std::string& logType, const std::string& logName, const std::string& dest, bool isMove) in CopyOrMoveFile() argument
74 return isMove ? proxy.Move(logType, logName, dest) : proxy.Copy(logType, logName, dest); in CopyOrMoveFile()
77 int32_t HiviewServiceAgent::Remove(const std::string& logType, const std::string& logName) in Remove() argument
85 return proxy.Remove(logType, logName); in Remove()
Dhiview_service_ability.cpp159 int32_t HiviewServiceAbility::List(const std::string& logType, std::vector<HiviewFileInfo>& fileInf… in List() argument
161 auto configInfoPtr = HiviewLogConfigManager::GetInstance().GetConfigInfoByType(logType); in List()
163 HIVIEW_LOGI("invalid logtype: %{public}s", logType.c_str()); in List()
192 int32_t HiviewServiceAbility::Copy(const std::string& logType, const std::string& logName, const st… in Copy() argument
194 return CopyOrMoveFile(logType, logName, dest, false); in Copy()
197 int32_t HiviewServiceAbility::Move(const std::string& logType, const std::string& logName, const st… in Move() argument
199 return CopyOrMoveFile(logType, logName, dest, true); in Move()
203 const std::string& logType, const std::string& logName, const std::string& dest, bool isMove) in CopyOrMoveFile() argument
209 auto configInfoPtr = HiviewLogConfigManager::GetInstance().GetConfigInfoByType(logType); in CopyOrMoveFile()
211 HIVIEW_LOGI("invalid logtype: %{public}s", logType.c_str()); in CopyOrMoveFile()
[all …]
Dhiview_service_ability_proxy.cpp28 int32_t HiviewServiceAbilityProxy::List(const std::string& logType, std::vector<HiviewFileInfo>& fi… in List() argument
30 HIVIEW_LOGI("type = %{public}s.", logType.c_str()); in List()
38 || !data.WriteString(logType)) { in List()
72 int32_t HiviewServiceAbilityProxy::Copy(const std::string& logType, const std::string& logName, in Copy() argument
75 return CopyOrMoveFile(logType, logName, dest, false); in Copy()
78 int32_t HiviewServiceAbilityProxy::Move(const std::string& logType, const std::string& logName, in Move() argument
81 return CopyOrMoveFile(logType, logName, dest, true); in Move()
85 const std::string& logType, const std::string& logName, const std::string& dest, bool isMove) in CopyOrMoveFile() argument
94 || !data.WriteString(logType) || !data.WriteString(logName) || !data.WriteString(dest)) { in CopyOrMoveFile()
115 int32_t HiviewServiceAbilityProxy::Remove(const std::string& logType, const std::string& logName) in Remove() argument
[all …]
Dhiview_service_ability_stub.cpp233 std::string logType; in HandleListRequest() local
234 if (!data.ReadString(logType)) { in HandleListRequest()
239 int32_t ret = List(logType, fileInfos); in HandleListRequest()
278 std::string logType; in HandleCopyOrMoveRequest() local
279 if (!data.ReadString(logType)) { in HandleCopyOrMoveRequest()
297 int32_t ret = isMove ? Move(logType, logName, dest) : Copy(logType, logName, dest); in HandleCopyOrMoveRequest()
306 std::string logType; in HandleRemoveRequest() local
307 if (!data.ReadString(logType)) { in HandleRemoveRequest()
316 int32_t ret = Remove(logType, logName); in HandleRemoveRequest()
/base/hiviewdfx/hiview/interfaces/js/napi/src/
Dnapi_hiview_js.cpp50 std::string logType; in List() local
51 if (!HiviewNapiUtil::ParseStringValue(env, "logType", params[LOG_TYPE_INDEX], logType)) { in List()
55 int32_t retCode = HiviewServiceAgent::GetInstance().List(logType, fileInfos); in List()
83 std::string logType; in CopyOrMoveFile() local
86 if (!HiviewNapiUtil::ParseStringValue(env, "logType", params[LOG_TYPE_INDEX], logType) in CopyOrMoveFile()
92 logType.c_str(), StringUtil::HideSnInfo(logName).c_str(), destDir.c_str()); in CopyOrMoveFile()
98 …HiviewFileParams* hiviewFileParams = new(std::nothrow) HiviewFileParams(logType, logName, destDir); in CopyOrMoveFile()
151 std::string logType; in Remove() local
153 if (!HiviewNapiUtil::ParseStringValue(env, "logType", params[LOG_TYPE_INDEX], logType) in Remove()
157 …HIVIEW_LOGI("type: %{public}s, name: %{public}s", logType.c_str(), StringUtil::HideSnInfo(logName)… in Remove()
[all …]
Dhiview_napi_adapter.cpp42 …params->result = HiviewServiceAgent::GetInstance().Copy(params->logType, params->logName, params->… in CopyFileExecution()
57 …params->result = HiviewServiceAgent::GetInstance().Move(params->logType, params->logName, params->… in MoveFileExecution()
/base/hiviewdfx/hiview/interfaces/js/napi/include/
Dhiview_napi_adapter.h25 …HiviewFileParams(const std::string& logType, const std::string& logName, const std::string& destDi… in HiviewFileParams()
26 : logType(logType), logName(logName), destDir(destDir) {}; in HiviewFileParams()
31 std::string logType; member
/base/hiviewdfx/hiview/adapter/service/idl/include/
Dhiview_service_agent.h30 int32_t List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos);
31 int32_t Copy(const std::string& logType, const std::string& logName, const std::string& dest);
32 int32_t Move(const std::string& logType, const std::string& logName, const std::string& dest);
33 int32_t Remove(const std::string& logType, const std::string& logName);
43 … const std::string& logType, const std::string& logName, const std::string& dest, bool isMove);
Dihiview_service_ability.h35 virtual int32_t List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos) = 0;
36 …virtual int32_t Copy(const std::string& logType, const std::string& logName, const std::string& de…
37 …virtual int32_t Move(const std::string& logType, const std::string& logName, const std::string& de…
38 virtual int32_t Remove(const std::string& logType, const std::string& logName) = 0;
Dhiview_service_ability_proxy.h34 int32_t List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos) override;
35 …int32_t Copy(const std::string& logType, const std::string& logName, const std::string& dest) over…
36 …int32_t Move(const std::string& logType, const std::string& logName, const std::string& dest) over…
37 int32_t Remove(const std::string& logType, const std::string& logName) override;
52 … const std::string& logType, const std::string& logName, const std::string& dest, bool isMove);
Dhiview_service_ability.h47 int32_t List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos) override;
48 …int32_t Copy(const std::string& logType, const std::string& logName, const std::string& dest) over…
49 …int32_t Move(const std::string& logType, const std::string& logName, const std::string& dest) over…
50 int32_t Remove(const std::string& logType, const std::string& logName) override;
87 … const std::string& logType, const std::string& logName, const std::string& dest, bool isMove);
/base/hiviewdfx/hiview/plugins/faultlogger/service/
Dfaultlog_formatter.h25 void WriteFaultLogToFile(int32_t fd, int32_t logType, std::map<std::string, std::string> sections);
28 std::string GetSummaryByType(int32_t logType, std::map<std::string, std::string> sections);
31 void LimitCppCrashLog(int32_t fd, int32_t logType);
Dfaultlog_formatter.cpp105 std::list<const char **> GetLogParseList(int32_t logType) in GetLogParseList() argument
107 switch (logType) { in GetLogParseList()
125 std::string GetSummaryByType(int32_t logType, std::map<std::string, std::string> sections) in GetSummaryByType() argument
128 switch (logType) { in GetSummaryByType()
214 void WriteFaultLogToFile(int32_t fd, int32_t logType, std::map<std::string, std::string> sections) in WriteFaultLogToFile() argument
216 std::list<const char **> seq = GetLogParseList(logType); in WriteFaultLogToFile()
339 void LimitCppCrashLog(int32_t fd, int32_t logType) in LimitCppCrashLog() argument
341 if ((fd < 0) || (logType != FaultLogType::CPP_CRASH) || !IsFaultLogLimit()) { in LimitCppCrashLog()
/base/hiviewdfx/hilog/test/moduletest/common/
Dadapter_test.cpp119 static const std::array<uint16_t, 7> logType = {-1, 0, 1, 3, 4, 5, 100}; variable
123 for (size_t i = 0; i < logType.size(); ++i) {
124 SetBufferSize(logType[i], false, size);
125 EXPECT_EQ(GetBufferSize(logType[i], false), expectedSize[i]);
/base/hiviewdfx/hilog/services/hilogd/
Dlog_buffer.cpp36 static int GenerateHilogMsgInside(HilogMsg& hilogMsg, const string& msg, uint16_t logType);
273 int32_t HilogBuffer::Delete(uint16_t logType) in Delete() argument
275 if (logType >= LOG_TYPE_MAX) { in Delete()
285 if ((*it).type != logType) { in Delete()
379 int64_t HilogBuffer::GetBuffLen(uint16_t logType) in GetBuffLen() argument
381 if (logType >= LOG_TYPE_MAX) { in GetBuffLen()
384 uint64_t buffSize = g_maxBufferSizeByType[logType]; in GetBuffLen()
388 int32_t HilogBuffer::SetBuffLen(uint16_t logType, uint64_t buffSize) in SetBuffLen() argument
390 if (logType >= LOG_TYPE_MAX) { in SetBuffLen()
397 g_maxBufferSizeByType[logType] = buffSize; in SetBuffLen()
[all …]
/base/hiviewdfx/hilog/services/hilogd/include/
Dlog_buffer.h48 int32_t Delete(uint16_t logType);
52 int64_t GetBuffLen(uint16_t logType);
53 int32_t SetBuffLen(uint16_t logType, uint64_t buffSize);
Dlog_persister_rotator.h61 int SetInfo(const LogPersistStartMsg& pMsg, uint16_t logType, uint8_t logLevel);
Dlog_persister.h42 uint16_t logType; member
/base/hiviewdfx/hilog/interfaces/rust/src/
Dlib.rs81 logType: u8, in HiLogPrint()
/base/hiviewdfx/hiview/plugins/faultlogger/common/
Dfaultlog_util.h32 int32_t GetRawEventIdByType(int32_t logType);
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/impl/
Dfaultlogger_client.cpp106 void AddFaultLog(int64_t time, int32_t logType, const std::string &module, const std::string &summa… in AddFaultLog() argument
118 infoOhos.faultLogType = logType; in AddFaultLog()
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/include/
Dfaultlogger_client.h125 void AddFaultLog(int64_t time, int32_t logType, const std::string &module, const std::string &summa…
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/js/napi/
Dnapi_faultlogger.cpp233 int32_t logType; in AddFaultLog() local
234 napi_get_value_int32(env, parameters[TWO_PARAMETER - 1], &logType); in AddFaultLog()
241 AddFaultLog(now * SEC_TO_MILLISEC, logType, module, summary); in AddFaultLog()
/base/hiviewdfx/hilog/frameworks/libhilog/utils/include/
Dlog_utils.h72 std::string LogType2Str(uint16_t logType);
/base/hiviewdfx/hilog/services/hilogtool/
Dlog_display.cpp220 static inline void HiLogShowProcInfo(const std::string& logType, uint32_t pid, const std::string& p… in HiLogShowProcInfo() argument
223 cout << setw(LOGTYPE_W) << logType << colCmd; in HiLogShowProcInfo()

12