Provide Search API-based alternative to dblog

Created on 19 September 2024, 3 months ago

Problem/Motivation

Drupal core provides 2 logger modules: dblog and syslog. The former has simple but nice UI, yet slows the system and is not recommended for production. The latter is performant, but does not provide any UI at all.

One of contrib-space alternatives to core logging is Monolog module, that works with different storage backends like file system, elastic/opensearch and others.

The hosting platform I'm working with currently, does not support Elastic, but I can get a Solr instance.

Which led me to the question, why not have generic plugin for monolog for any search_api-compatible backend? Which led to the next question - why not have generic LoggerInterface plugin that would work with any search_api compatible backend?

Steps to reproduce

  1. Install Search API module (obviously)
  2. Configure at least one Search API server

Proposed resolution

Create a search_api_logger module (either as a submodule of search_api itself, or as a separate project - I'm open to both) that

  1. Exposes SearchApiLog implementation of LoggerInterface
  2. Exposes Log datasource plugin
  3. Exposes LogEntry DataType plugin and accompanying datadefinition plugin
  4. (optionally?) exposes dummy tracker that does not track anything, since all the data is stored in search_api

Remaining tasks

Implement all of the above :)

Feature request
Status

Active

Version

1.0

Component

Framework

Created by

🇧🇬Bulgaria valthebald Sofia

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