Class FileLogger

java.lang.Object
edu.wpi.first.util.FileLogger
All Implemented Interfaces:
AutoCloseable

public class FileLogger extends Object implements AutoCloseable
A class version of `tail -f`, otherwise known as `tail -f` at home. Watches a file and puts the data into a data log. Only works on Linux-based platforms.
  • Constructor Details

    • FileLogger

      public FileLogger(String file, DataLog log, String key)
      Construct a FileLogger. When the specified file is modified, appended data will be appended to the specified data log.
      Parameters:
      file - The path to the file.
      log - A data log.
      key - The log key to append data to.
  • Method Details