LiveKit Swift Client SDK Documentation

Protocol Loggable

public protocol Loggable  

Allows to extend with custom log method which automatically captures current type (class name).

%299 Loggable Loggable VideoViewDelegateReceiver VideoViewDelegateReceiver VideoViewDelegateReceiver->Loggable Completer Completer Completer->Loggable VideoCapturer VideoCapturer VideoCapturer->Loggable WebSocket WebSocket WebSocket->Loggable Participant Participant Participant->Loggable VideoView VideoView VideoView->Loggable VideoCaptureInterceptor VideoCaptureInterceptor VideoCaptureInterceptor->Loggable ObservableParticipant ObservableParticipant ObservableParticipant->Loggable Track Track Track->Loggable ObservableRoom ObservableRoom ObservableRoom->Loggable Room Room Room->Loggable TrackDelegateReceiver TrackDelegateReceiver TrackDelegateReceiver->Loggable MulticastDelegate MulticastDelegate MulticastDelegate->Loggable AudioManager AudioManager AudioManager->Loggable DispatchQueueTimer DispatchQueueTimer DispatchQueueTimer->Loggable TrackPublication TrackPublication TrackPublication->Loggable DataChannelPair DataChannelPair DataChannelPair->Loggable

Types Conforming to Loggable

Room
Participant
TrackPublication
MulticastDelegate

A class that allows to have multiple delegates instead of one.

ObservableParticipant
ObservableRoom
AudioManager
VideoCapturer
Track
VideoCaptureInterceptor
VideoView

Default Implementations

set(logger​Metadata:​for:​)

func set(loggerMetadata data: ScopedMetadata?, for key: String)  

attach logger metadata to this instance that will be automatically included in every log onward