PHPackages                             lastcall/drupal\_logging - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. lastcall/drupal\_logging

ActiveProject[Logging &amp; Monitoring](/categories/logging)

lastcall/drupal\_logging
========================

Send your Drupal logs where you want (Papertrail for now)

1.0.0(7y ago)0169MITPHP

Since Feb 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/LastCallMedia/drupal_logging)[ Packagist](https://packagist.org/packages/lastcall/drupal_logging)[ RSS](/packages/lastcall-drupal-logging/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Logging to Papertrail
=====================

[](#logging-to-papertrail)

Logging to Papertrail is brought to you by your friends at [Last Call Media](https://www.lastcallmedia.com).

Instructions for setting up logging
-----------------------------------

[](#instructions-for-setting-up-logging)

At  add a destination. Take note of the port and destination url. Each site should log to its own destination by using a unique port.

In your Drupal site's repo, run:

```
composer require lastcall/drupal_logging

```

Create `sites/default/monolog.services.yml` and add the following (replacing !PORT! and !DESTINATION\_URL! with the correct values for your destination):

```
parameters:
  monolog.channel_handlers:
    default: ['rsyslog', 'drupal.dblog']

services:
  monolog.handler.rsyslog:
    class: LastCall\DrupalLogging\PapertrailHandler
    arguments: ['!DESTINATION_URL!', !PORT!]

```

Enable monolog which is brought in with this package.

```
drush en -y monolog

```

Add the following to `settings.php`

```
  // If you have installed drupal_logger and Drupal isn't finding your class, you may
  // have stale class info in the APC cache. This is a safeguard to avoid whitescreens
  // in that case.
  $handler_exists = class_exists('LastCall\\DrupalLogging\\PapertrailHandler');
  if ($handler_exists) {
    $settings['container_yamls'][] = 'sites/default/monolog.services.yml';
  }

```

If you're using Pantheon and you don't want local machines logging add:

```
if (isset($_ENV['PANTHEON_ENVIRONMENT'])) {
  $settings['container_yamls'][] = 'sites/default/monolog.services.yml';
}

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2647d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ed3bb4a063470c33393efb02aa796b8e5d67878aaca66d40e574f5595f7f5c3?d=identicon)[slipo](/maintainers/slipo)

---

Top Contributors

[![slipo](https://avatars.githubusercontent.com/u/327999?v=4)](https://github.com/slipo "slipo (2 commits)")[![sagar-lcm](https://avatars.githubusercontent.com/u/106957476?v=4)](https://github.com/sagar-lcm "sagar-lcm (1 commits)")

### Embed Badge

![Health badge](/badges/lastcall-drupal-logging/health.svg)

```
[![Health](https://phpackages.com/badges/lastcall-drupal-logging/health.svg)](https://phpackages.com/packages/lastcall-drupal-logging)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
