Merge "Base: Fix logging_test"

This commit is contained in:
Treehugger Robot 2016-09-07 20:06:28 +00:00 committed by Gerrit Code Review
commit 3b80e5bc9f
1 changed files with 6 additions and 1 deletions

View File

@ -126,7 +126,12 @@ std::string make_log_pattern(android::base::LogSeverity severity,
char log_char = log_characters[severity];
std::string holder(__FILE__);
return android::base::StringPrintf(
"%c[[:space:]]+[[:digit:]]+[[:space:]]+[[:digit:]]+ %s:[[:digit:]]+] %s",
"%c[[:space:]]+"
"[[:digit:]]+-[[:digit:]]+[[:space:]]+"
"[[:digit:]]+:[[:digit:]]+:[[:digit:]]+[[:space:]]+"
"[[:digit:]]+[[:space:]]+"
"[[:digit:]]+[[:space:]]+"
"%s:[[:digit:]]+] %s",
log_char, basename(&holder[0]), message);
}