Class LogUtil

java.lang.Object
frc8768.robot.util.LogUtil

public class LogUtil extends Object
Center for all things logging. Dashboard, or printing, its up to you. Example usage can be seen in Drivebase Operator and SwerveSubsystem
  • Field Details

    • LOGGER

      public static final Logger LOGGER
      Logging instance, change the parameter to your robots name
  • Constructor Details

    • LogUtil

      public LogUtil()
  • Method Details

    • registerDashLogger

      public static void registerDashLogger(Supplier<Map<String,Object>> logger)
      Parameters:
      logger - Adds a logger to be printed to SmartDashboard, should return Map with String types.
    • registerLogger

      public static void registerLogger(Supplier<List<String>> logger)
      Parameters:
      logger - Adds a logger to be printed to the logging instance.
    • run

      public static void run()
      Runs each log function to print the supplied state