setLogHistorySize method

Future<Success> setLogHistorySize(
  1. String isolateId,
  2. int size
)

The setLogHistorySize RPC is used to set the size of the ring buffer used for caching a limited set of historical log messages.

If size is 0, logging history will be disabled.

The maximum history size is 100,000 messages, with the default set to 10,000 messages.

Implementation

Future<Success> setLogHistorySize(String isolateId, int size) async {
  // No version check needed, present since v1.0 of the protocol.
  return _callHelper<Success>('setLogHistorySize', args: {
    'isolateId': isolateId,
    'size': size,
  });
}