LoggerOptions.errorsOnly constructor

const LoggerOptions.errorsOnly({
  1. void logPrint(
    1. String message
    ) = print,
  2. List<APIMethod> methods = APIMethod.values,
  3. bool colorOutput = true,
})

Creates error-only logging options.

Implementation

const LoggerOptions.errorsOnly({
  this.logPrint = print,
  this.methods = APIMethod.values,
  this.colorOutput = true,
})  : request = false,
      requestBody = false,
      responseBody = false,
      error = true,
      stackTrace = true,
      prettyPrint = false;