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. String logLineBreak = '\n',
  7. bool enabled = true,
  8. String? reqExtra(
    1. RequestOptions req
    )?,
  9. String? rspExtra(
    1. Response rsp
    )?,
  10. 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.logLineBreak = '\n', // or '␤', '¶'
  this.enabled = true,
  this.reqExtra,
  this.rspExtra,
  this.errExtra,
}) : logPrint = (logPrint ?? Logger('EffLogger').info);