Class AutoLogOutputManager

java.lang.Object
org.littletonrobotics.junction.AutoLogOutputManager

public class AutoLogOutputManager extends Object
Manages objects and packages for annotation logging of outputs with AutoLogOutput.
  • Method Details

    • addPackage

      public static void addPackage(String packageName)
      Adds a new allowed package to use when scanning for annotations. By default, the parent class where @AutoLogOutput is used must be within the same package as Robot (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

      public static void addObject(Object root)
      Registers a root object, scanning for loggable fields recursively.
      Parameters:
      root - The object to scan recursively.