summaryrefslogtreecommitdiff
path: root/overrides
diff options
context:
space:
mode:
authorglaznev@webrtc.org <glaznev@webrtc.org>2014-09-15 19:16:21 +0000
committerglaznev@webrtc.org <glaznev@webrtc.org>2014-09-15 19:16:21 +0000
commitcd27c3bdf4f9a3feedfa785211bfb81fb9ffc54f (patch)
treefe446036c5e261d0fd810c661790d7767ecaf2b1 /overrides
parent6f7830ceb08302ca3bce59da7f7147a404f71c52 (diff)
downloadwebrtc-cd27c3bdf4f9a3feedfa785211bfb81fb9ffc54f.tar.gz
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/webrtc@7186 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'overrides')
-rw-r--r--overrides/webrtc/base/logging.cc5
-rw-r--r--overrides/webrtc/base/logging.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/overrides/webrtc/base/logging.cc b/overrides/webrtc/base/logging.cc
index f0c79106..a2ffba65 100644
--- a/overrides/webrtc/base/logging.cc
+++ b/overrides/webrtc/base/logging.cc
@@ -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,
diff --git a/overrides/webrtc/base/logging.h b/overrides/webrtc/base/logging.h
index d8dfca2c..d9e0a355 100644
--- a/overrides/webrtc/base/logging.h
+++ b/overrides/webrtc/base/logging.h
@@ -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,