WPILogWriter

constructor(output: OutputStream, extraHeader: String = "", timeSource: TimeSource.WithComparableMarks = TimeSource.Monotonic, origin: ComparableTimeMark = timeSource.markNow())(source)

Parameters

output

Where the log goes. close closes it.

extraHeader

A string stored in the file header, conventionally JSON. Readers ignore it.

timeSource

The clock that timestamps are measured on. A log created on its own can use the default. To line a log up with a dev.nextftc.telemetry.nt.NT4Server or another writer, give them the same source and the same origin.

origin

The moment timestamp zero refers to, a mark from timeSource. The default is the moment the writer is created. Share one origin between sinks that should agree on every timestamp.