log static method

void log(
  1. String tag, {
  2. HitType type = HitType.none,
  3. String? client,
  4. dynamic data,
})

Implementation

static void log(
  String tag, {
  HitType type = HitType.none,
  String? client,
  dynamic data,
}) {
  if (_i.onCheck != null &&
      (type == HitType.response || type == HitType.listen)) {
    _i.onCheck!(tag, data);
  }
  _i._count("$tag-${type.name}", client);
}