capture<R extends Object?> abstract method
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]);