This project is not covered by Drupal’s security advisory policy.

This module is a pre-release and is being actively developed

Drush Logger

Logs all Drush commands to Drupal's watchdog system.

Requirements

  • Drupal 9, 10, or 11
  • Drush 11 or 12

Installation

  1. Install the module via Composer:

    composer require drupal/drush_logger

  2. Enable the module:

    drush en drush_logger

Usage

Once enabled, the module will automatically log all Drush commands to the watchdog system.

You can view the logs in the following ways:

  • Through the Drupal admin UI: /admin/reports/dblog
  • Using Drush: drush watchdog:show --type=drush_logger

Features

  • Logs command name, arguments, and options
  • Logs command errors with error details
  • Logs bootstrap events

Development

  • Tests can be run with: ./vendor/bin/phpunit web/modules/custom/drush_logger

Project information

Releases