OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 package org.webrtc; | 11 package org.webrtc; |
12 | 12 |
13 import java.io.PrintWriter; | 13 import java.io.PrintWriter; |
14 import java.io.StringWriter; | 14 import java.io.StringWriter; |
15 import java.util.EnumSet; | 15 import java.util.EnumSet; |
| 16 import java.util.logging.Level; |
16 import java.util.logging.Logger; | 17 import java.util.logging.Logger; |
17 import java.util.logging.Level; | |
18 | 18 |
19 /** Java wrapper for WebRTC logging. */ | 19 /** Java wrapper for WebRTC logging. */ |
20 public class Logging { | 20 public class Logging { |
21 private static final Logger fallbackLogger = Logger.getLogger("org.webrtc.Logg
ing"); | 21 private static final Logger fallbackLogger = Logger.getLogger("org.webrtc.Logg
ing"); |
22 private static volatile boolean tracingEnabled; | 22 private static volatile boolean tracingEnabled; |
23 private static volatile boolean loggingEnabled; | 23 private static volatile boolean loggingEnabled; |
24 private static volatile boolean nativeLibLoaded; | 24 private static volatile boolean nativeLibLoaded; |
25 | 25 |
26 static { | 26 static { |
27 try { | 27 try { |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 return sw.toString(); | 178 return sw.toString(); |
179 } | 179 } |
180 | 180 |
181 private static native void nativeEnableTracing( | 181 private static native void nativeEnableTracing( |
182 String path, int nativeLevels); | 182 String path, int nativeLevels); |
183 private static native void nativeEnableLogToDebugOutput(int nativeSeverity); | 183 private static native void nativeEnableLogToDebugOutput(int nativeSeverity); |
184 private static native void nativeEnableLogThreads(); | 184 private static native void nativeEnableLogThreads(); |
185 private static native void nativeEnableLogTimeStamps(); | 185 private static native void nativeEnableLogTimeStamps(); |
186 private static native void nativeLog(int severity, String tag, String message)
; | 186 private static native void nativeLog(int severity, String tag, String message)
; |
187 } | 187 } |
OLD | NEW |