enableTimelineLogging property

bool enableTimelineLogging

Current state of HTTP request logging from all HttpClients to the developer timeline.

Default is false.

Implementation

static bool get enableTimelineLogging => _enableTimelineLogging;
void enableTimelineLogging= (bool value)

Enable logging of HTTP requests from all HttpClients to the developer timeline.

Default is false.

Implementation

static set enableTimelineLogging(bool value) {
  final enabled = valueOfNonNullableParamWithDefault<bool>(value, false);
  if (enabled != _enableTimelineLogging) {
    postEvent('HttpTimelineLoggingStateChange', {
      'isolateId': Service.getIsolateID(Isolate.current),
      'enabled': enabled,
    });
  }
  _enableTimelineLogging = enabled;
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-io/HttpClient/enableTimelineLogging.html