|
Android-cuttlefish cvd tool
|
#include <errno.h>#include <signal.h>#include <stdint.h>#include <unistd.h>#include <regex>#include <string>#include <vector>#include "absl/log/check.h"#include "absl/log/log.h"#include "absl/strings/ascii.h"#include "absl/strings/match.h"#include "gflags/gflags.h"#include "cuttlefish/common/libs/fs/shared_fd.h"#include "cuttlefish/common/libs/utils/tee_logging.h"#include "cuttlefish/host/libs/config/cuttlefish_config.h"#include "cuttlefish/posix/strerror.h"#include "cuttlefish/result/result_type.h"
Functions | |
| DEFINE_string (process_name, "", "The process to credit log messages to") | |
| DEFINE_int32 (log_fd_in, -1, "The file descriptor to read logs from.") | |
| const std::regex | kCrosvmLogPattern ("^\\[" "\\d{4}" "-" "\\d{2}" "-" "\\d{2}" "T" "\\d{2}" ":" "\\d{2}" ":" "\\d{2}" "\\." "\\d{9}" "(Z|[+-]\\d{2}(:\\d{2}|\\d{2})?)" "\\s" "(ERROR|WARN|INFO|DEBUG|TRACE)") |
| int | main (int argc, char **argv) |
| DEFINE_int32 | ( | log_fd_in | , |
| - | 1, | ||
| "The file descriptor to read logs from." | |||
| ) |
| DEFINE_string | ( | process_name | , |
| "" | , | ||
| "The process to credit log messages to" | |||
| ) |
| const std::regex kCrosvmLogPattern | ( | "^\\\\d{2}(:\\d{2}|\\d{2})? | [" "\\d{4}" "-" "\\d{2}" "-" "\\d{2}" "T" "\\d{2}" ":" "\\d{2}" ":" "\\d{2}" "\\." "\\d{9}" "(Z|[+-] | ) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |