Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: PhotoSwipe - Responsive JavaScript Modal Image Gallery 5.0.10 Minor update available for module photoswipe (5.0.10). Release: Twig Tweak 4.0.0-alpha5 New alpha version released for module twig_tweak (4.0.0-alpha5). Release: UI Styles 8.x-1.22 Minor update available for module ui_styles (8.x-1.22). Release: Bookable Calendar 3.1.0 Minor update available for module bookable_calendar (3.1.0). Release: Animated SDC 1.0.0 Initial release available for module animated_sdc (1.0.0)! Release: ViewMend Site Tracker 1.1.0 Minor update available for module viewmend_site_tracker (1.1.0). Release: Cybersource REST 1.0.2 Minor update available for module cybersource_rest (1.0.2). Release: Fox drush console 1.6.3 Minor update available for module fox (1.6.3). Module Revived: Bootstrap Cloud 7.0.0 Theme bootstrap_cloud updated after 16 months of inactivity (7.0.0). Security Coverage: Unrestricted Page Module unrestricted_page now has official Drupal security advisory coverage.

Past Log

66 sites Security covered Drupal 10–11
View on drupal.org

Past is a flexible logging system that records and analyzes complex data structures, including watchdog events, uncaught exceptions with backtraces, and inter-service communication. It allows you to log any type of data, store it in a searchable format, and manage old entries.

Overview

Past is an extended logging framework, designed to log and later analyze complex data structures to a pluggable backend.

It can record watchdog events (and be a watchdog module replacement). Also it can capture uncaught exceptions with backtraces and circumvent PHP limitations in error handling with a shutdown handler to capture all possible application errors. It can even scan PHP error.log files for missing pieces.

Another typical use case for past is logging communication between one or multiple services, where data is received, processed and forwarded.

A single log message is called an event, which can have multiple attached arguments, each argument can be a scalar, an array, an object or an exception. Complex data structures like arrays and objects are stored separately so that they can be searched and displayed in a readable way, those rows are called "(event) data".

Features

  • Procedural and object oriented interface for logging events
  • Attach any number of arguments to a single event
  • Pluggable backend. The current default backend is a database/entity based backend, a simpletest backend is additionally provided that allows to display events as debug output
  • Each element in an array or object is stored separately to be search and filterable
  • Views and drush integration for the database backend
  • Expiration of old entries
  • Log PHP errors and exceptions with backtraces
  • Workaround to capture special PHP errors through shutdown handler
  • Bug hunt UI with TODO / done flags
  • Scan PHP error.log for fatal errors

Requirements

Past was built for D7. There will be no back port.

The default backend requires the Entity module.

Documentation

See the README.txt and the API documentation.

Introductional blog post about Past

Known problems

There is currently no views integration to search and filter the event data.

Recommended modules

Views to be able to list and filter events in the reports section of your site.

Similar projects

The watchdog API provided by Drupal core provides a simpler API with less functionality for complex data and is targeted more towards end-users with e.g. translated log messages.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Nov 2024
Latest release
1 month ago
Releases (12 mo)
1
Maintenance
Active

Releases

Version Type Core Release date
8.x-1.4 Stable 10–11 Jul 22, 2026
8.x-1.3 Stable 10–11 Nov 23, 2024