ApiLoggingConfig constructor
const
ApiLoggingConfig({
- bool enabled = true,
- ApiLoggingLevel level = ApiLoggingLevel.basic,
- bool logRequestHeaders = false,
- bool logRequestBody = false,
- bool logResponseHeaders = false,
- bool logResponseBody = false,
- bool logQueryParameters = false,
- bool logCookies = false,
- bool showDuration = true,
- bool showRequestId = false,
- bool prettyPrintBodies = true,
- bool useAnsi = false,
- Set<
String> sensitiveKeys = defaultSensitiveKeys, - int maxDepth = 6,
- int maxCollectionItems = 30,
- 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,
});