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

Unified Diff: talk/app/webrtc/java/src/org/webrtc/Logging.java

Issue 1309073004: Add JNI/java wrapper for the file rotating logging class. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: CR Created 5 years, 4 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
« no previous file with comments | « talk/app/webrtc/java/src/org/webrtc/CallSessionFileRotatingLogSink.java ('k') | talk/libjingle.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/app/webrtc/java/src/org/webrtc/Logging.java
diff --git a/talk/app/webrtc/java/src/org/webrtc/Logging.java b/talk/app/webrtc/java/src/org/webrtc/Logging.java
index fd49bceca626878deb31cdf358043349943a48f6..75f758978333561b16117413a993457992f4974e 100644
--- a/talk/app/webrtc/java/src/org/webrtc/Logging.java
+++ b/talk/app/webrtc/java/src/org/webrtc/Logging.java
@@ -64,6 +64,13 @@ public class Logging {
LS_SENSITIVE, LS_VERBOSE, LS_INFO, LS_WARNING, LS_ERROR,
};
+ public static void enableLogThreads() {
+ nativeEnableLogThreads();
+ }
+
+ public static void enableLogTimeStamps() {
+ nativeEnableLogTimeStamps();
+ }
// Enable tracing to |path| of messages of |levels| and |severity|.
// On Android, use "logcat:" for |path| to send output there.
@@ -76,6 +83,13 @@ public class Logging {
nativeEnableTracing(path, nativeLevel, severity.ordinal());
}
+ public static void log(Severity severity, String tag, String message) {
+ nativeLog(severity.ordinal(), tag + ": " + message);
+ }
+
private static native void nativeEnableTracing(
String path, int nativeLevels, int nativeSeverity);
+ private static native void nativeEnableLogThreads();
+ private static native void nativeEnableLogTimeStamps();
+ private static native void nativeLog(int severity, String message);
}
« no previous file with comments | « talk/app/webrtc/java/src/org/webrtc/CallSessionFileRotatingLogSink.java ('k') | talk/libjingle.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698