Lines Matching refs:logFile
162 int EventLogger::GetFile(std::shared_ptr<SysEvent> event, std::string& logFile, bool isFfrt) in GetFile() argument
170 logFile = idStr + "-" + std::to_string(pid) + "-" + formatTime + ".log"; in GetFile()
172 logFile = "ffrt_" + std::to_string(pid) + "_" + formatTime; in GetFile()
175 if (FileUtil::FileExists(LOGGER_EVENT_LOG_PATH + "/" + logFile)) { in GetFile()
176 HIVIEW_LOGW("filename: %{public}s is existed, direct use.", logFile.c_str()); in GetFile()
178 UpdateDB(event, logFile); in GetFile()
182 return logStore_->CreateLogFile(logFile); in GetFile()
320 std::string logFile; in StartLogCollect() local
321 int fd = GetFile(event, logFile, false); in StartLogCollect()
323 HIVIEW_LOGE("create log file %{public}s failed, %{public}d", logFile.c_str(), fd); in StartLogCollect()
365 UpdateDB(event, logFile); in StartLogCollect()
371 HIVIEW_LOGI("Collect on finish, name: %{public}s", logFile.c_str()); in StartLogCollect()
613 std::string logFile = idStr + "-" + std::to_string(pid) + "-" + formatTime + "-KernelStack-" + in WriteKernelStackToFile() local
615 std::string path = LOGGER_EVENT_LOG_PATH + "/" + logFile; in WriteKernelStackToFile()
617 HIVIEW_LOGI("Filename: %{public}s is existed.", logFile.c_str()); in WriteKernelStackToFile()
620 int kernelFd = logStore_->CreateLogFile(logFile); in WriteKernelStackToFile()
770 bool EventLogger::UpdateDB(std::shared_ptr<SysEvent> event, std::string logFile) in UpdateDB() argument
772 if (logFile == "nolog") { in UpdateDB()
776 auto logPath = R"~(logPath:)~" + LOGGER_EVENT_LOG_PATH + "/" + logFile; in UpdateDB()