Interface LogDataReceiver

All Known Implementing Classes:
NT4Publisher, RLOGServer, WPILOGWriter

public interface LogDataReceiver
Receives entries from the logging system during real operation or simulation.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Data receivers may optionally log the current timestamp using this key.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    end()
    Called when the code shuts down cleanly.
    void
    Called every loop cycle when a new table is complete.
    default void
    Called before the logging system begins reporting data.
  • Field Details

    • timestampKey

      static final String timestampKey
      Data receivers may optionally log the current timestamp using this key.
      See Also:
  • Method Details

    • start

      default void start()
      Called before the logging system begins reporting data. This should be used to connect to files, find network devices, start threads, etc.
    • end

      default void end()
      Called when the code shuts down cleanly. Note that this will NOT be called when the robot is powered off.
    • putTable

      void putTable(LogTable table) throws InterruptedException
      Called every loop cycle when a new table is complete. This data can be processed immediately or queued for later.
      Parameters:
      table - A copy of the data to save.
      Throws:
      InterruptedException - If interrupted while processing.