PHPackages                             mundanity/drupal-logger - 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. mundanity/drupal-logger

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

mundanity/drupal-logger
=======================

A watchdog() psr-3 logger for Drupal.

v1.1.2(8y ago)03.7k3MITPHPPHP ~5.3 || ~7.1

Since Mar 31Pushed 7y agoCompare

[ Source](https://github.com/mundanity/drupal-logger)[ Packagist](https://packagist.org/packages/mundanity/drupal-logger)[ Docs](https://github.com/mundanity/drupal-logger)[ RSS](/packages/mundanity-drupal-logger/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

A simple PSR-3 implementation of a logger for Drupal watchdog calls.

Details
=======

[](#details)

The PSR-3 parameter `$context` is passed to watchdog as variables, for use as placeholders.

```
class MyClass
{
    public function myMethod($param)
    {
        $this->logger->warning('Param value was @param', ['@param' => $param]);

        return $param;
    }
}

```

The watch dog type is set as the function or class method that called the logging code. In the example above, the watchdog type is set as *MyClass::myMethod*.

Controlling log levels
----------------------

[](#controlling-log-levels)

Log levels below a specified level can be ignored, which may help reduce noise in production systems. When the class is initiated, an optional LogLevel may be provided. Events at or below the provided LogLevel will be ignored. $logger = new WatchdogLogger(LogLevel::NOTICE);

```
// This debug message will be ignored.
$logger->debug('Some debugging information');

```

By default, no events are ignored.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

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

Every ~327 days

Total

4

Last Release

3080d ago

PHP version history (2 changes)v1.0.0PHP ~5.3

v1.1.2PHP ~5.3 || ~7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/56675384117269211171e76ae8a49643add2e80d25ab7011bf6550d05566cd84?d=identicon)[mundanity](/maintainers/mundanity)

---

Top Contributors

[![mundanity](https://avatars.githubusercontent.com/u/493772?v=4)](https://github.com/mundanity "mundanity (4 commits)")[![krisolafson](https://avatars.githubusercontent.com/u/2043498?v=4)](https://github.com/krisolafson "krisolafson (2 commits)")

### Embed Badge

![Health badge](/badges/mundanity-drupal-logger/health.svg)

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

###  Alternatives

[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k227.1M273](/packages/sentry-sentry)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2222.9M248](/packages/open-telemetry-sdk)[open-telemetry/api

API for OpenTelemetry PHP.

1833.0M214](/packages/open-telemetry-api)[pagemachine/typo3-formlog

Form log for TYPO3

23225.3k6](/packages/pagemachine-typo3-formlog)

PHPackages © 2026

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