defineScope3<T1, T2, T3> static method

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

Defines a log scope with three parameters.

Implementation

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