Partial implementation of rtc::LogMessage in chromium overrides.

rtc::LogMessage::LogToDebug used in peerconnection_jni.cc.

BUG=https://crbug.com/412276
R=glaznev@webrtc.org, niklas.enbom@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/25459004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@7186 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
glaznev@webrtc.org 2014-09-15 19:16:21 +00:00
parent 996784548d
commit ab7073a1e8
2 changed files with 10 additions and 0 deletions

View File

@ -164,6 +164,11 @@ DiagnosticLogMessage::~DiagnosticLogMessage() {
}
}
// static
void LogMessage::LogToDebug(int min_sev) {
logging::SetMinLogLevel(min_sev);
}
// Note: this function is a copy from the overriden libjingle implementation.
void LogMultiline(LoggingSeverity level, const char* label, bool input,
const void* data, size_t len, bool hex_mode,

View File

@ -150,6 +150,11 @@ class LogMultilineState {
}
};
class LogMessage {
public:
static void LogToDebug(int min_sev);
};
// When possible, pass optional state variable to track various data across
// multiple calls to LogMultiline. Otherwise, pass NULL.
void LogMultiline(LoggingSeverity level, const char* label, bool input,