record method

void record(
  1. TrackableType trackable,
  2. {Map<String, String?> defaults = const {}}
)

Records trackable into all enabled logs.

If trackable does not specify a value for a field, then the value from defaults will be used (key=title), if present.

Implementation

void record(TrackableType trackable,
    {Map<String, String?> defaults = const {}}) {
  for (final dumper in _dumpers) {
    dumper.record(trackable, defaults: defaults);
  }
}