StringLogEntry

class wpiutil.log.StringLogEntry(*args, **kwargs)

Bases: DataLogEntry

Log string values.

Overloaded function.

  1. __init__(self: wpiutil._wpiutil.log.StringLogEntry, log: wpiutil._wpiutil.log.DataLog, name: str, timestamp: int = 0) -> None

  2. __init__(self: wpiutil._wpiutil.log.StringLogEntry, log: wpiutil._wpiutil.log.DataLog, name: str, metadata: str, timestamp: int = 0) -> None

  3. __init__(self: wpiutil._wpiutil.log.StringLogEntry, log: wpiutil._wpiutil.log.DataLog, name: str, metadata: str, type: str, timestamp: int = 0) -> None

append(value: str, timestamp: int = 0) None

Appends a record to the log.

Parameters:
  • value – Value to record

  • timestamp – Time stamp (may be 0 to indicate now)

kDataType = 'string'