Package org.littletonrobotics.junction
Class AutoLogOutputManager
java.lang.Object
org.littletonrobotics.junction.AutoLogOutputManager
Manages objects and packages for annotation logging of outputs with
AutoLogOutput.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidRegisters a root object, scanning for loggable fields recursively.static voidaddPackage(String packageName) Adds a new allowed package to use when scanning for annotations.
-
Method Details
-
addPackage
Adds a new allowed package to use when scanning for annotations. By default, the parent class where@AutoLogOutputis used must be within the same package asRobot(or a subpackage). Calling this method registers a new allowed package, such as a "lib" package outside of normal robot code.This method must be called within the constructor of
Robot.- Parameters:
packageName- The new allowed package name (e.g. "frc.lib")
-
addObject
Registers a root object, scanning for loggable fields recursively.- Parameters:
root- The object to scan recursively.
-