Add support for the Android-specific DEBUG and VERBOSE log levels.
(But these are currently always-on, like all other log levels at the moment.)
Change-Id: Ie2cc66eb4b1ba2f11c0bd13bfe32da94d5b168f8
diff --git a/src/logging_linux.cc b/src/logging_linux.cc
index d62649b..42bc50b 100644
--- a/src/logging_linux.cc
+++ b/src/logging_linux.cc
@@ -28,14 +28,14 @@
namespace art {
LogMessage::LogMessage(const char* file, int line, LogSeverity severity, int error)
-: line_number_(line), severity_(severity), errno_(error)
-{
+ : line_number_(line), severity_(severity), errno_(error) {
const char* last_slash = strrchr(file, '/');
file_ = (last_slash == NULL) ? file : last_slash + 1;
}
void LogMessage::LogLine(const char* line) {
- std::cerr << "IWEF"[severity_] << ' ' << StringPrintf("%5d %5d", getpid(), ::art::GetTid()) << ' '
+ std::cerr << "VDIWEF"[severity_] << ' '
+ << StringPrintf("%5d %5d", getpid(), ::art::GetTid()) << ' '
<< file_ << ':' << line_number_ << "] " << line << std::endl;
}