[Meta] Modernize dblog module

Created on 27 January 2017, almost 8 years ago
Updated 27 March 2023, over 1 year ago

Problem/Motivation

The dblog was ported from Drupal 7 to Drupal 8 following some general guidelines, but in general is far to be as extensible and object oriented like other Drupal 8 modules from core.

Proposed resolution

There are several front of actions to modernize this module. The plan is to have at least a set of this changes ready to include in 8.4.x.

Additionally to this there are some ideas to convert the logs into entities πŸ“Œ Make dblog entities Postponed . This makes sense to get better integration with views and if a module swap the logger.dblog service could have immediate views support. That issue also points to have a custom service for "fast writing", I think we already have that in Drupal\dblog\Logger\DbLog::log.

Remaining tasks

User interface changes

None

API changes

  • Api addition: A new storage backend for Drupal\dblog\Logger\dblog.
  • dblog_filters and _dblog_get_message_types deprecated.
  • A new trait to create fake log entries.

Data model changes

Maybe a rename of the watchdog table.

🌱 Plan
Status

Active

Version

10.1 ✨

Component
Database LoggingΒ  β†’

Last updated about 2 months ago

  • Maintained by
  • πŸ‡¦πŸ‡·Argentina @dagmar
Created by

πŸ‡¦πŸ‡·Argentina dagmar Argentina

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¨πŸ‡¦Canada jigarius MontrΓ©al

    I'm not sure if this is the right place to add my suggestion, but it'd be great to have some filter/search capacity out of the box. Say,

    * Filter by date range
    * Search for text (I understand that this is complicated given the way log messages are translated, but I'm just thinking aloud).

Production build 0.71.5 2024