DataLogWriter
- class wpilog.DataLogWriter(filename: str, extraHeader: str = '')
Bases:
DataLogA data log writer that flushes the data log to a file when Flush() is called.
The lifetime of this object must be longer than any data log entry objects that refer to it.
Constructs with a filename.
- Parameters:
filename – filename to use
ec – error code if failed to open file (output)
extraHeader – extra header data
- flush() None
Flushes the log data to disk.
- stop() None
Stops appending all records to the log, and closes the log file.