LoggingInterceptor constructor

LoggingInterceptor({
  1. LogLevel level = LogLevel.body,
  2. List<String> redactHeaders = const ['authorization', 'cookie', 'x-api-key', 'api-key'],
  3. List<String> redactFields = const ['password', 'token', 'access_token', 'refresh_token', 'ssn', 'credit_card', 'cvv'],
  4. void logPrint(
    1. String message
    )?,
})

Implementation

LoggingInterceptor({
  this.level = LogLevel.body,
  this.redactHeaders = const [
    'authorization',
    'cookie',
    'x-api-key',
    'api-key',
  ],
  this.redactFields = const [
    'password',
    'token',
    'access_token',
    'refresh_token',
    'ssn',
    'credit_card',
    'cvv',
  ],
  this.logPrint,
});