From ab7073a1e84d59a8acde008a7767f5034050fac0 Mon Sep 17 00:00:00 2001 From: "glaznev@webrtc.org" Date: Mon, 15 Sep 2014 19:16:21 +0000 Subject: [PATCH] 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 --- webrtc/overrides/webrtc/base/logging.cc | 5 +++++ webrtc/overrides/webrtc/base/logging.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/webrtc/overrides/webrtc/base/logging.cc b/webrtc/overrides/webrtc/base/logging.cc index f0c79106d6..a2ffba650b 100644 --- a/webrtc/overrides/webrtc/base/logging.cc +++ b/webrtc/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/webrtc/overrides/webrtc/base/logging.h b/webrtc/overrides/webrtc/base/logging.h index d8dfca2cec..d9e0a35545 100644 --- a/webrtc/overrides/webrtc/base/logging.h +++ b/webrtc/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,