BluetoothLogListener

Log listener that receives log messages produced by the library.

Must be application-scoped — the library retains the listener for the process lifetime. Activity- or Fragment-scoped instances will leak.

Threading: log(...) may be invoked on any thread (including Binder / the iOS BLE callback queue). Implementations must be non-blocking — offload file or network I/O.

Inheritors

AndroidLogger
NSLogger

Types

Link copied to clipboard

Supported levels of logging.

Functions

Link copied to clipboard
abstract fun log(level: BluetoothLogListener.Level, tag: String, message: String)
abstract fun log(level: BluetoothLogListener.Level, tag: String, message: String, throwable: Throwable)