WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
Data wpi::util::Logger Functions

Functions

NT_DataLogger wpi::nt::StartEntryDataLog (NT_Inst inst, wpi::log::DataLog &log, std::string_view prefix, std::string_view logPrefix)
 Starts logging entry changes to a DataLog.
void wpi::nt::StopEntryDataLog (NT_DataLogger logger)
 Stops logging entry changes to a DataLog.
NT_ConnectionDataLogger wpi::nt::StartConnectionDataLog (NT_Inst inst, wpi::log::DataLog &log, std::string_view name)
 Starts logging connection changes to a DataLog.
void wpi::nt::StopConnectionDataLog (NT_ConnectionDataLogger logger)
 Stops logging connection changes to a DataLog.

Detailed Description

Function Documentation

◆ StartConnectionDataLog()

NT_ConnectionDataLogger wpi::nt::StartConnectionDataLog ( NT_Inst inst,
wpi::log::DataLog & log,
std::string_view name )

Starts logging connection changes to a DataLog.

Parameters
instinstance handle
logdata log object; lifetime must extend until StopConnectionDataLog is called or the instance is destroyed
namedata log entry name
Returns
Data logger handle

◆ StartEntryDataLog()

NT_DataLogger wpi::nt::StartEntryDataLog ( NT_Inst inst,
wpi::log::DataLog & log,
std::string_view prefix,
std::string_view logPrefix )

Starts logging entry changes to a DataLog.

Parameters
instinstance handle
logdata log object; lifetime must extend until StopEntryDataLog is called or the instance is destroyed
prefixonly store entries with names that start with this prefix; the prefix is not included in the data log entry name
logPrefixprefix to add to data log entry names
Returns
Data logger handle

◆ StopConnectionDataLog()

void wpi::nt::StopConnectionDataLog ( NT_ConnectionDataLogger logger)

Stops logging connection changes to a DataLog.

Parameters
loggerdata logger handle

◆ StopEntryDataLog()

void wpi::nt::StopEntryDataLog ( NT_DataLogger logger)

Stops logging entry changes to a DataLog.

Parameters
loggerdata logger handle