Class DataLogReporter

java.lang.Object
dev.doglog.internal.log_thread.reporters.DataLogReporter
All Implemented Interfaces:
Reporter

public class DataLogReporter extends Object implements Reporter
Logs to a WPILib DataLog.
  • Constructor Details

  • Method Details

    • log

      public void log(long timestamp, String key, boolean[] value)
      Specified by:
      log in interface Reporter
    • log

      public void log(long timestamp, String key, boolean value)
      Specified by:
      log in interface Reporter
    • log

      public void log(long timestamp, String key, double[] value)
      Specified by:
      log in interface Reporter
    • log

      public void log(long timestamp, String key, double value)
      Specified by:
      log in interface Reporter
    • log

      public void log(long timestamp, String key, float[] value)
      Specified by:
      log in interface Reporter
    • log

      public void log(long timestamp, String key, float value)
      Specified by:
      log in interface Reporter
    • log

      public void log(long timestamp, String key, long[] value)
      Specified by:
      log in interface Reporter
    • log

      public void log(long timestamp, String key, long value)
      Specified by:
      log in interface Reporter
    • log

      public void log(long timestamp, String key, String[] value)
      Specified by:
      log in interface Reporter
    • log

      public void log(long timestamp, String key, String value)
      Specified by:
      log in interface Reporter
    • log

      public void log(long timestamp, String key, String value, String customTypeString)
      Specified by:
      log in interface Reporter
    • log

      public <T> void log(long timestamp, String key, edu.wpi.first.util.struct.Struct<T> struct, T[] value)
      Specified by:
      log in interface Reporter
    • log

      public <T> void log(long timestamp, String key, edu.wpi.first.util.struct.Struct<T> struct, T value)
      Specified by:
      log in interface Reporter
    • setOptions

      public void setOptions(DogLogOptions options)
    • isLogDestinationValid

      public boolean isLogDestinationValid()
      This could be a static method, but it's not because this class controls initializing DataLogManager, which has to be done before this method can be called.
      Returns:
      Whether the log destination directory is valid. On a roboRIO 2 this is always true, on a roboRIO 1 this is true when a USB drive is attached.