Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Logger DB

44 sites Security covered
View on drupal.org

This module stores detailed, structured log information in your database, along with microsecond-precise timestamps and any associated metadata. It offers a user-friendly interface within Drupal to view, filter, sort, and export these logs.

Logger DB is an extended Drupal logging module that stores structured logs in JSON format within the SQL database. It captures raw placeholder values and metadata—including all nested objects—and stores them as separate values. Log timestamps are recorded with microsecond precision.

It provides Views-based UI reporting pages in the Drupal admin panel, with the ability to display custom log entry columns as plain text or number formatters for scalar values, and JSON/YAML formatters for complex values—including tested values using JSONPath, such as $.metadata.ai.token_usage.total.

You can filter and sort logs by custom field values, including nested fields, using JSONPath.

Logger DB has no mandatory dependencies and works seamlessly with the core Drupal Logger. However, to fully customize log fields, it is recommended to use extended logger modules such as Logger or Monolog, which are already integrated and automatically extended by Logger DB.

Features

  • Stores structured logs in the local SQL database as a single JSON column.
  • Records log entry timestamps and request start times with microsecond precision, allowing measurement of time spent on operations for each request.
  • Supports storing nested structures of any size and depth from the context array as nested JSON objects.
  • Provides a convenient, customizable Views-based UI to view logs directly in the Drupal admin panel.
  • Allows creation of multiple log report pages in the admin panel, displaying only required custom columns with custom context filters.
  • Provides exporting logs to a file and importing from a file, with merging and deduplication of entries.
  • Supports filtering logs by date and time range, and by any custom field values using JSONPath.
  • Offers Drupal Views field and filter plugins to build custom log view pages, displaying only relevant fields.
  • Can clean up old log entries by age or by limiting the total number of log entries.

Requirements

Logger DB has no mandatory dependencies and works with the core Drupal Logger.

For advanced log customization, use extended loggers like Logger or Monolog. Logger DB is already integrated with these modules and will automatically extend their functionality when they are installed.

Additional recommended modules

  • Request Logger: Logs every request to the logger with performance metrics (duration, memory usage, cache status, etc.), and attaches a unique request ID to each log entry, allowing you to easily filter logs by a specific request.
  • Events Log Track: Allows logging specific user actions such as user authentication, node, comment, and other entities operations (create, update, delete), workflow actions, configuration changes, etc.

Activity

Total releases
5
First release
Sep 2025
Latest release
3 months ago
Releases (12 mo)
5 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.0-alpha4 Pre-release Apr 13, 2026
1.0.0-alpha3 Pre-release Mar 19, 2026
1.0.0-alpha2 Pre-release Oct 13, 2025
1.0.0-alpha1 Pre-release Oct 11, 2025
1.0.x-dev Dev Sep 22, 2025