defineScope2<T1, T2> static method

Disposable? Function(Logger, T1, T2) defineScope2<T1, T2>(
  1. String formatString
)

Defines a log scope with two parameters.

Implementation

static Disposable? Function(Logger, T1, T2) defineScope2<T1, T2>(
  String formatString,
) =>
    (logger, arg1, arg2) => logger.beginScope(
          formatString
              .replaceAll('{0}', arg1.toString())
              .replaceAll('{1}', arg2.toString()),
        );