capture<R extends Object?> abstract method

  1. @experimental
R capture<R extends Object?>(
  1. R body(), [
  2. LogOptions? logOptions
])

Set logger options for this zone The custom handler can intercept print operations and redirect them to l.d output

  l.capture(
    someFunction,
    const LogOptions(
      handlePrint: false,
      messageFormatting: _messageFormatting,
    ),
  );

Implementation

@experimental
R capture<R extends Object?>(R Function() body, [LogOptions? logOptions]);