Android-cuttlefish cvd tool
Namespaces | Functions | Variables
log_files.cpp File Reference
#include "cuttlefish/host/commands/cvd/cli/log_files.h"
#include <stddef.h>
#include <time.h>
#include <algorithm>
#include <chrono>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include <string_view>
#include <vector>
#include "absl/log/log.h"
#include "absl/strings/match.h"
#include "cuttlefish/files/directory_contents.h"
#include "cuttlefish/files/directory_exists.h"
#include "cuttlefish/host/commands/cvd/utils/common.h"
#include "cuttlefish/posix/remove.h"
#include "cuttlefish/result/result.h"
Include dependency graph for log_files.cpp:

Namespaces

namespace  cuttlefish
 
namespace  cuttlefish::anonymous_namespace{log_files.cpp}
 

Functions

bool cuttlefish::anonymous_namespace{log_files.cpp}::IsNotLogFile (std::string_view name)
 
std::string cuttlefish::CvdUserLogDir ()
 
std::string cuttlefish::GetCvdLogFileName (const std::string &log_dir, const std::chrono::system_clock::time_point now)
 
Result< void > cuttlefish::PruneLogsDirectory (const std::string &log_dir, size_t retain)
 

Variables

constexpr std::string_view cuttlefish::anonymous_namespace{log_files.cpp}::kLogFilePrefix = "cvd_"
 
constexpr std::string_view cuttlefish::anonymous_namespace{log_files.cpp}::kLogFileSuffix = ".log"