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. void logPrint(
    1. InterceptStep step,
    2. Object object
    ) = _defaultLogPrint,
})

Initialize a new logging interceptor

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 = _defaultLogPrint,
});