Package frc8768.robot.util
Class LogUtil
java.lang.Object
frc8768.robot.util.LogUtil
Center for all things logging. Dashboard, or printing, its up to you.
Example usage can be seen in Drivebase Operator and SwerveSubsystem
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
registerDashLogger
(Supplier<Map<String, Object>> logger) static void
registerLogger
(Supplier<List<String>> logger) static void
run()
Runs each log function to print the supplied state
-
Field Details
-
LOGGER
Logging instance, change the parameter to your robots name
-
-
Constructor Details
-
LogUtil
public LogUtil()
-
-
Method Details
-
registerDashLogger
- Parameters:
logger
- Adds a logger to be printed to SmartDashboard, should return Map with String types.
-
registerLogger
- 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
-