ServiceLoggerDSL
The CommonLoggerDSL that sets up the logging of the data handled by a com.splendo.kaluga.bluetooth.RemoteService
Properties
Link copied to clipboard
the ContextualLogger to use for logging at this level
Functions
Link copied to clipboard
Creates the default ContextualLogger to use for a com.splendo.kaluga.bluetooth.RemoteCharacteristic of a given UUID
Link copied to clipboard
abstract fun logAnyCharacteristic(logger: (UUID) -> ContextualLogger = ::defaultLoggerForCharacteristic, characteristicLogger: ConnectionSettings.LoggerDSL.CharacteristicLoggerDSL.() -> Unit = {})
Sets up the CharacteristicLoggerDSL for all com.splendo.kaluga.bluetooth.RemoteCharacteristic not explicitly configured hy logCharacteristic
Link copied to clipboard
abstract fun logCharacteristic(uuid: UUID, logger: ContextualLogger = defaultLoggerForCharacteristic(uuid), characteristicLogger: ConnectionSettings.LoggerDSL.CharacteristicLoggerDSL.() -> Unit = {})
Sets up the CharacteristicLoggerDSL for a com.splendo.kaluga.bluetooth.RemoteCharacteristic of a given UUID