WPILibC++ 2024.3.2
Data Logger Functions

Functions

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

Detailed Description

Function Documentation

◆ StartConnectionDataLog()

NT_ConnectionDataLogger 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 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 nt::StopConnectionDataLog ( NT_ConnectionDataLogger  logger)

Stops logging connection changes to a DataLog.

Parameters
loggerdata logger handle

◆ StopEntryDataLog()

void nt::StopEntryDataLog ( NT_DataLogger  logger)

Stops logging entry changes to a DataLog.

Parameters
loggerdata logger handle