LoggingInterceptor constructor

LoggingInterceptor({
  1. Logger? logger,
})

Creates a logging interceptor with optional custom logger

Implementation

LoggingInterceptor({Logger? logger})
    : _logger = logger ??
          Logger(
            printer: PrettyPrinter(
              methodCount: 0,
              errorMethodCount: 5,
              lineLength: 80,
              colors: true,
              printEmojis: true,
              dateTimeFormat: DateTimeFormat.onlyTimeAndSinceStart,
            ),
          );