Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Events Logger

Security covered Under active development 244 sites

This module logs various Drupal system events, including entity creations, updates, and deletions, with detailed change tracking. It also logs form submissions, allowing you to specify which events and forms to track, set data retention policies, and export logs.

A module that is used for tracking all the possible drupal system events with a variety of features around it.

Features

Can set a system message including tokens for any type of CRUD entity actions or form submissions. Now, all your form submission data can be logged and tracked for a purpose.

Once an entity performs any updates into the fields we can now track it via a diff visualization into the logs listing which will keep us a transparent view of who, when, and what exactly fields were changed.

Can configure which specter of modules we want to track the events, and also filter them into logs listing. Also, set the specific forms we want to track the submissions, or just track all we do have on the site (including custom forms).

Can specify how many logs the system may keep and the rest of the logs will be erased by a corn job.

Can export and perform the full CRUD actions to the logs.

Logs the IP address and User agent for the tracked event.
NOTE: Be careful with this feature and make sure to inform users about this in cookie complaints and/or GDPR policy.

Dependencies

It has an internal drupal service for this purpose. Here are examples:

$elog_service = \Drupal::service('elogger.logger');

// Log an entity event log like the creation, update, and delete of a Drupal entity.
// $entity: a Drupal "EntityInterface" instance like node, term, user, menu_link, etc.
$elog_service->setEntity($entity);
$elog_service->logEvent('entity_create');

/**
 * Implements hook_form_alter().
 */
function elogger_form_alter(&$form, FormStateInterface $form_state, $form_id) {
  // Log a form submit event. It will also log the submitted form data.
  $elog_service->setForm($form, $form_state);
  $elog_service->logEvent('actions');
}

Configuration pages

  • Logs listing: admin/reports/elogger
  • Elogger: Filter Configurations: admin/config/system/elogger
  • Elogger: Log Messages Configurations: admin/config/system/elogger/log-messages
  • Elogger: Filter Configurations: admin/config/system/elogger
Drupal 9–11

Ask your assistant about Events Logger

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • diff Drupal core
  • token Drupal core
  • views Drupal core
  • views_bulk_operations Drupal core
  • views_data_export Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
Feb 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.1.13 Stable 9–11 Apr 16, 2024
1.1.12 Stable 9–10 Nov 17, 2023
1.1.11 Stable 9–10 Nov 15, 2023
1.1.10 Stable 9–10 Aug 29, 2023
1.1.9 Stable 9–10 Mar 30, 2023
1.1.8 Stable 9–10 Feb 9, 2023