TxLogger
public protocol TxLogger
Protocol defining the interface for custom logging in the Telnyx SDK. Implement this protocol to create a custom logger that can receive and handle logs from the SDK.
-
Called when a log message needs to be processed.
Declaration
Swift
func log(level: LogLevel, message: String)Parameters
levelThe severity level of the log message
messageThe actual log message