Configure logging levels

Created on 26 September 2023, about 1 year ago
Updated 5 December 2023, 12 months ago

Problem/Motivation

The upstream Coveo SDK logs interactions to the "Info" level. This can fill logs quickly.

Proposed resolution

  1. Add a configurable log level threshold to configuration
  2. Add a service that extends \Drupal\Core\Logger\LoggerChannel but adds a check in ::log for the log level vs. the threshold before continuing the parent method.
  3. Use this extended channel in \Drupal\search_api_coveo\LoggerTrait and when instantiating classes from the Coveo SDK.

User interface changes

Add a select element for the threshold to \Drupal\search_api_coveo\Plugin\search_api\backend\SearchApiCoveoBackend::buildConfigurationForm

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States fathershawn New York

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024