Logging

open class Logging

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.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun d(tag: String, message: String)
Link copied to clipboard
open fun e(tag: String, message: String)
open fun e(tag: String, message: String, e: Throwable)
Link copied to clipboard
open fun enableLogThreads()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun log(severity: Logging.Severity, tag: String, message: String)
Link copied to clipboard
open fun v(tag: String, message: String)
Link copied to clipboard
open fun w(tag: String, message: String)
open fun w(tag: String, message: String, e: Throwable)