Log

object Log(source)

A logging facade for code that can't depend on the FTC SDK.

Messages go to sink. The default prints warnings and errors to standard error, which is what you want in unit tests; hardware's RobotController installs one that writes to the Robot Controller log.

Properties

Link copied to clipboard

The destination for every message. Replace it to redirect logging.

Functions

Link copied to clipboard
fun debug(message: String)

Logs message at debug level.

Link copied to clipboard
fun error(message: String, throwable: Throwable? = null)

Logs message at error level, with the stack trace of throwable if given.

Link copied to clipboard
fun info(message: String)

Logs message at info level.

Link copied to clipboard
fun warn(message: String, throwable: Throwable? = null)

Logs message at warn level, with the stack trace of throwable if given.