log static method

void log(
  1. IsoTraceKind kind,
  2. String message, {
  3. Uint8List? bytes,
})

Implementation

static void log(IsoTraceKind kind, String message, {Uint8List? bytes}) {
  if (!enabled) return;
  _entries.add(IsoTraceEntry(kind, message, hex: bytes == null ? null : IsoUtil.hexString(bytes)));
  if (_entries.length > maxEntries) _entries.removeRange(0, _entries.length - maxEntries);
}