EffDioLogger constructor

EffDioLogger({
  1. bool requestHeader = true,
  2. bool responseHeader = false,
  3. bool compact = true,
  4. int? maxWidth = 324,
  5. void logPrint(
    1. Object object
    )?,
  6. bool enabled = true,
  7. String? reqExtra(
    1. RequestOptions req
    )?,
  8. String? rspExtra(
    1. Response rsp
    )?,
  9. String? errExtra(
    1. DioException err
    )?,
})

Implementation

EffDioLogger({
  this.requestHeader = true,
  this.responseHeader = false,
  this.compact = true,
  this.maxWidth = 324,
  void Function(Object object)? logPrint,
  this.enabled = true,
  this.reqExtra,
  this.rspExtra,
  this.errExtra,
}) : logPrint = (logPrint ?? (l) => log('$l', name: 'EffLogger'));