DebugLogging constructor

DebugLogging({
  1. bool enabled = kDebugMode,
  2. bool printToConsole = kDebugMode,
  3. bool redactSensitiveHeaders = true,
  4. int maxConsoleBodyLength = 2000,
  5. List<DebugEnvironment> environments = const [],
  6. Dio? client,
})

Implementation

DebugLogging({
  this.enabled = kDebugMode,
  this.printToConsole = kDebugMode,
  this.redactSensitiveHeaders = true,
  this.maxConsoleBodyLength = 2000,
  this.environments = const [],
  this.client,
}) {
  if (!enabled) return;
  ReleaseGuard.check('DebugLogging');
  DebugEnvironments.instance.register(environments);
}