Android-cuttlefish cvd tool
Functions
log_tee.cpp File Reference
#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"
Include dependency graph for log_tee.cpp:

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)
 

Function Documentation

◆ DEFINE_int32()

DEFINE_int32 ( log_fd_in  ,
1,
"The file descriptor to read logs from."   
)

◆ DEFINE_string()

DEFINE_string ( process_name  ,
""  ,
"The process to credit log messages to"   
)

◆ kCrosvmLogPattern()

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|[+-])

◆ main()

int main ( int  argc,
char **  argv 
)