Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(370)

Unified Diff: talk/app/webrtc/java/jni/peerconnection_jni.cc

Issue 1338033003: Log to webrtc logging stream from java code. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: not lose tag Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: talk/app/webrtc/java/jni/peerconnection_jni.cc
diff --git a/talk/app/webrtc/java/jni/peerconnection_jni.cc b/talk/app/webrtc/java/jni/peerconnection_jni.cc
index 47581d9e0ed57d452639c3fae27fae1f5b86e4d8..35406f5560fddf324d398ed1719879fca553f90c 100644
--- a/talk/app/webrtc/java/jni/peerconnection_jni.cc
+++ b/talk/app/webrtc/java/jni/peerconnection_jni.cc
@@ -928,9 +928,10 @@ JOW(void, Logging_nativeEnableLogTimeStamps)(JNIEnv* jni, jclass) {
}
JOW(void, Logging_nativeLog)(
- JNIEnv* jni, jclass, jint j_severity, jstring j_message) {
+ JNIEnv* jni, jclass, jint j_severity, jstring j_tag, jstring j_message) {
std::string message = JavaToStdString(jni, j_message);
- LOG_V(static_cast<rtc::LoggingSeverity>(j_severity)) << message;
+ std::string tag = JavaToStdString(jni, j_tag);
+ LOG_TAG(static_cast<rtc::LoggingSeverity>(j_severity), tag) << message;
}
JOW(void, PeerConnection_freePeerConnection)(JNIEnv*, jclass, jlong j_p) {

Powered by Google App Engine
This is Rietveld 408576698