EffDioLogger constructor
EffDioLogger({
- bool request = true,
- bool requestHeader = true,
- bool requestBody = true,
- bool responseHeader = false,
- bool responseBody = true,
- bool error = true,
- bool filter(
- RequestOptions options,
- FilterArgs args
- int lineWidth = 162,
- bool compact = true,
- int? maxWidth = 324,
- void logPrint(
- Object object
- String logLineBreak = '\n',
- bool enabled = true,
- String? reqExtra(
- RequestOptions req
- String? rspExtra(
- Response rsp
- String? errExtra(
- DioException err
Implementation
EffDioLogger({
this.request = true,
this.requestHeader = true,
this.requestBody = true,
this.responseHeader = false,
this.responseBody = true,
this.error = true,
this.filter,
this.lineWidth = 162,
this.compact = true,
this.maxWidth = 324,
void Function(Object object)? logPrint,
this.logLineBreak = '\n', // or '', '¶'
this.enabled = true,
this.reqExtra,
this.rspExtra,
this.errExtra,
}) : _mode = _EffDioLoggerMode.lightweight,
logPrint = (logPrint ?? Logger('EffLogger').info);