ApiLoggingConfig constructor

const ApiLoggingConfig({
  1. bool enabled = true,
  2. ApiLoggingLevel level = ApiLoggingLevel.basic,
  3. bool logRequestHeaders = false,
  4. bool logRequestBody = false,
  5. bool logResponseHeaders = false,
  6. bool logResponseBody = false,
  7. bool logQueryParameters = false,
  8. bool logCookies = false,
  9. bool showDuration = true,
  10. bool showRequestId = false,
  11. bool prettyPrintBodies = true,
  12. bool useAnsi = false,
  13. Set<String> sensitiveKeys = defaultSensitiveKeys,
  14. int maxDepth = 6,
  15. int maxCollectionItems = 30,
  16. int maxStringLength = 500,
})

Implementation

const ApiLoggingConfig({
  this.enabled = true,
  this.level = ApiLoggingLevel.basic,
  this.logRequestHeaders = false,
  this.logRequestBody = false,
  this.logResponseHeaders = false,
  this.logResponseBody = false,
  this.logQueryParameters = false,
  this.logCookies = false,
  this.showDuration = true,
  this.showRequestId = false,
  this.prettyPrintBodies = true,
  this.useAnsi = false,
  this.sensitiveKeys = defaultSensitiveKeys,
  this.maxDepth = 6,
  this.maxCollectionItems = 30,
  this.maxStringLength = 500,
});