Logging

tee3.webrtc

## 类 Logging

- java.lang.Object
- - tee3.webrtc.Logging

-     public class Logging
      extends java.lang.Object

  Java wrapper for WebRTC logging. Logging defaults to java.util.logging.Logger, but a custom logger implementing the Loggable interface can be injected along with a Severity. All subsequent log messages will then be redirected to the injected Loggable, except those with a severity lower than the specified severity, which will be discarded. It is also possible to switch to native logging (rtc::LogMessage) if one of the following static functions are called from the app: - Logging.enableLogThreads - Logging.enableLogTimeStamps - Logging.enableLogToDebugOutput The priority goes: 1. Injected loggable 2. Native logging 3. Fallback logging. Only one method will be used at a time. Injecting a Loggable or using any of the enable... methods requires that the native library is loaded, using PeerConnectionFactory.initialize.

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 类和说明
    --- | ---
    `static class` | `Logging.Severity`
    `static class` | `Logging.TraceLevel` 已过时。

  - ### 构造器概要

    构造器
    构造器和说明
    `Logging()`

  - ### 方法概要

    所有方法 静态方法 具体方法 已过时的方法
    限定符和类型 | 方法和说明
    --- | ---
    `static void` | `d(java.lang.String tag, java.lang.String message)`
    `static void` | `e(java.lang.String tag, java.lang.String message)`
    `static void` | `e(java.lang.String tag, java.lang.String message, java.lang.Throwable e)`
    `static void` | `enableLogThreads()`
    `static void` | `enableLogTimeStamps()`
    `static void` | `enableLogToDebugOutput(Logging.Severity severity)`
    `static void` | `enableTracing(java.lang.String path, java.util.EnumSet<Logging.TraceLevel> levels)` 已过时。
    `static void` | `log(Logging.Severity severity, java.lang.String tag, java.lang.String message)`
    `static void` | `v(java.lang.String tag, java.lang.String message)`
    `static void` | `w(java.lang.String tag, java.lang.String message)`
    `static void` | `w(java.lang.String tag, java.lang.String message, java.lang.Throwable e)`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### Logging

          public Logging()

  - ### 方法详细资料

    - #### enableLogThreads

          public static void enableLogThreads()

    - #### enableLogTimeStamps

          public static void enableLogTimeStamps()

    - #### enableTracing

          @Deprecated
          public static void enableTracing(java.lang.String path,
                                                        java.util.EnumSet<Logging.TraceLevel> levels)

      已过时。

    - #### enableLogToDebugOutput

          public static void enableLogToDebugOutput(Logging.Severity severity)

    - #### log

          public static void log(Logging.Severity severity,
                                 java.lang.String tag,
                                 java.lang.String message)

    - #### d

          public static void d(java.lang.String tag,
                               java.lang.String message)

    - #### e

          public static void e(java.lang.String tag,
                               java.lang.String message)

    - #### w

          public static void w(java.lang.String tag,
                               java.lang.String message)

    - #### e

          public static void e(java.lang.String tag,
                               java.lang.String message,
                               java.lang.Throwable e)

    - #### w

          public static void w(java.lang.String tag,
                               java.lang.String message,
                               java.lang.Throwable e)

    - #### v

          public static void v(java.lang.String tag,
                               java.lang.String message)