LoggingInterceptor constructor

LoggingInterceptor({
  1. bool request = true,
  2. bool requestHeader = false,
  3. bool requestBody = true,
  4. bool responseHeader = false,
  5. bool responseBody = true,
  6. bool error = true,
  7. int maxWidth = 120,
  8. bool compact = true,
  9. LogPrint? logPrint,
  10. String tag = 'SC:Http',
})

Creates a new LoggingInterceptor.

Implementation

LoggingInterceptor({
  this.request = true,
  this.requestHeader = false,
  this.requestBody = true,
  this.responseHeader = false,
  this.responseBody = true,
  this.error = true,
  this.maxWidth = 120,
  this.compact = true,
  this.logPrint,
  String tag = 'SC:Http',
}) : _logger = StreamLogger(tag);