Package edu.wpi.first.util
Class FileLogger
java.lang.Object
edu.wpi.first.util.FileLogger
- All Implemented Interfaces:
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 Summary
-
Method Summary
-
Constructor Details
-
FileLogger
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
-
close
- Specified by:
close
in interfaceAutoCloseable
-