log

fun log(name: String, value: Boolean)(source)

Logs value to the boolean topic name.


fun log(name: String, value: Int)(source)
fun log(name: String, value: Long)(source)

Logs value to the integer topic name.


fun log(name: String, value: Float)(source)

Logs value to the float topic name.


fun log(name: String, value: Double)(source)

Logs value to the double topic name.


fun log(name: String, value: String)(source)

Logs value to the string topic name.


fun log(name: String, value: BooleanArray)(source)

Logs value to the topic name that holds arrays of booleans.


fun log(name: String, value: IntArray)(source)
fun log(name: String, value: LongArray)(source)

Logs value to the topic name that holds arrays of integers.


fun log(name: String, value: FloatArray)(source)

Logs value to the topic name that holds arrays of floats.


fun log(name: String, value: DoubleArray)(source)

Logs value to the topic name that holds arrays of doubles.


fun log(name: String, value: Any)(source)

Logs value at name, choosing how from what it is.

Numbers, booleans, strings, and primitive arrays go to the topics above, with a Byte or Short logged as an integer. An array of objects is logged as an array of structs, or of strings. A value with a TelemetryTypeHandler registered for its type, such as a Measure, is logged by that handler. A TelemetryLoggable is logged into the child table name. Anything else is logged as a struct.

A collection or map is rejected with a warning, because its element type is erased. Use arrayTopic or logArray for a list.