withTag static method

dynamic withTag(
  1. String tag,
  2. RunWithLog block
)

Creates logger with tag, then executes the code block with a logger to use. Removing need of tag generation.

Implementation

static dynamic withTag(String tag, RunWithLog block) {
  var logger = FimberLog(tag);
  return block(logger);
}