Android-cuttlefish cvd tool
|
#include <signal.h>
#include <regex>
#include <android-base/logging.h>
#include <android-base/strings.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"
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 | ||
) |