LogPingu

object LogPingu

Utility class for logging. Provides methods to update PID values, retrieve double values, create pairs, and perform test logging.

Properties

Link copied to clipboard

Indicates whether the system is in test mode. When true, logging functions will record outputs.

Functions

Link copied to clipboard
fun log(string: String, value: Any)

Logs a key-value pair.

Link copied to clipboard
fun logs(block: Runnable)

Logs multiple values within the provided block context.

fun logs(vararg logs: Log)

Logs multiple values with their respective keys based on the type of each value.

fun <T : WPISerializable?> logs(key: String?, value: T)

Logs a WPISerializable value with a specified key if the system is in test mode.

fun <T : StructSerializable?> logs(key: String?, vararg value: T)

Logs a StructSerializable value with a specified key if the system is in test mode.

fun logs(key: String?, value: Boolean)

Logs a boolean value with a specified key if the system is in test mode.

fun logs(key: String?, value: Double)

Logs a double value with a specified key if the system is in test mode.

fun logs(key: String?, value: Int)

Logs an integer value with a specified key if the system is in test mode.

fun logs(key: String?, value: String?)

Logs a String value with a specified key if the system is in test mode.

Link copied to clipboard
fun metaLogs(key: String?, value: String?)

Logs a metadata value with a specified key if the system is in test mode.