RAR1741/RA19_RobotCode

View on GitHub
src/main/java/frc/robot/logging/Loggable.java

Summary

Maintainability
A
0 mins
Test Coverage
package frc.robot.logging;

/**
 * An interface that allows objects to be logged.
 *
 * @see DataLogger
 */
public interface Loggable {
  /**
   * Sets up logging for Loggable. Should only call
   * {@link DataLogger#addAttribute(String)}.
   *
   * @param logger logger to setup for
   */
  public abstract void setupLogging(DataLogger logger);

  /**
   * Logs the Loggable. Should only call {@link DataLogger#log(String, Object)}
   *
   * @param logger logger to log for
   */
  public abstract void log(DataLogger logger);
}