Searched refs:logFile (Results 1 – 9 of 9) sorted by relevance
/base/hiviewdfx/hiview/plugins/faultlogger/service/ |
D | faultlog_formatter.cpp | 151 std::ifstream logFile(realPath); in WriteStackTraceFromLog() local 154 while (std::getline(logFile, line)) { in WriteStackTraceFromLog() 155 if (!logFile.good()) { in WriteStackTraceFromLog() 237 std::ifstream logFile(path); in ParseFaultLogInfoFromFile() local 241 while (std::getline(logFile, line)) { in ParseFaultLogInfoFromFile() 242 if (!logFile.good()) { in ParseFaultLogInfoFromFile() 269 std::ifstream logFile(path); in WriteLogToFile() local 270 while (std::getline(logFile, line)) { in WriteLogToFile() 271 if (!logFile.good()) { in WriteLogToFile()
|
D | faultlog_manager.cpp | 114 std::string logFile = info.logPath; in SaveFaultLogToFile() local 115 if (logFile != "" && FileUtil::FileExists(logFile)) { in SaveFaultLogToFile() 116 if (!FileUtil::RemoveFile(logFile)) { in SaveFaultLogToFile() 117 HIVIEW_LOGW("remove logFile %{public}s filed.", logFile.c_str()); in SaveFaultLogToFile()
|
/base/hiviewdfx/hiview/base/ |
D | audit.cpp | 113 std::fstream logFile(AUDIT_LOG_PATH, std::ios::out); in Clear() local 171 std::ifstream logFile(path); in ReadLogFromFile() local 173 if (logFile.good()) { in ReadLogFromFile() 174 while (getline(logFile, line)) { in ReadLogFromFile() 178 logFile.close(); in ReadLogFromFile() 181 logFile.close(); in ReadLogFromFile()
|
/base/hiviewdfx/hiview/base/logstore/test/unittest/common/ |
D | log_store_unit_test.cpp | 142 logStoreEx.ClearSameLogFilesIfNeeded([] (auto& logFile) { in __anon4c5a67280202() argument 143 return logFile.isValid_; in __anon4c5a67280202() 146 logStoreEx.ClearSameLogFilesIfNeeded([] (auto& logFile) { in __anon4c5a67280302() argument 147 return logFile.isValid_; in __anon4c5a67280302()
|
/base/hiviewdfx/hiview/plugins/eventlogger/ |
D | event_logger.cpp | 119 std::string logFile = idStr + "-" + std::to_string(pid) + "-" in StartLogCollect() local 121 if (FileUtil::FileExists(LOGGER_EVENT_LOG_PATH + "/" + logFile)) { in StartLogCollect() 122 HIVIEW_LOGW("filename: %{public}s is existed, direct use.", logFile.c_str()); in StartLogCollect() 123 UpdateDB(event, logFile); in StartLogCollect() 127 int fd = logStore_->CreateLogFile(logFile); in StartLogCollect() 129 HIVIEW_LOGE("create log file %{public}s failed, %{public}d", logFile.c_str(), fd); in StartLogCollect() 146 UpdateDB(event, logFile); in StartLogCollect() 231 bool EventLogger::UpdateDB(std::shared_ptr<SysEvent> event, std::string logFile) in UpdateDB() argument 248 if (logFile == "nolog") { in UpdateDB() 252 auto logPath = R"~(logPath:)~" + LOGGER_EVENT_LOG_PATH + "/" + logFile; in UpdateDB()
|
/base/startup/init/services/log/ |
D | init_log.c | 42 static void LogToFile(const char *logFile, const char *tag, const char *info) in LogToFile() argument 49 INIT_CHECK_ONLY_RETURN((outfile = fopen(logFile, "a+")) != NULL); in LogToFile()
|
/base/update/updater/services/log/ |
D | log.cpp | 33 void InitUpdaterLogger(const std::string &tag, const std::string &logFile, const std::string &stage… in InitUpdaterLogger() argument 40 g_updaterLog.open(logFile.c_str(), std::ios::app | std::ios::out); in InitUpdaterLogger()
|
/base/hiviewdfx/hiview/plugins/eventlogger/include/ |
D | event_logger.h | 82 bool UpdateDB(std::shared_ptr<SysEvent> event, std::string logFile);
|
/base/update/updater/services/include/log/ |
D | log.h | 117 void InitUpdaterLogger(const std::string &tag, const std::string &logFile, const std::string &stage…
|