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 2w 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 66% 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

3127d ago

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

v1.1.2PHP ~5.3 || ~7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/493772?v=4)[Owen Loy](/maintainers/mundanity)[@mundanity](https://github.com/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.9k240.0M315](/packages/sentry-sentry)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[illuminate/log

The Illuminate Log package.

6225.0M603](/packages/illuminate-log)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[api-platform/metadata

API Resource-oriented metadata attributes and factories

244.5M182](/packages/api-platform-metadata)[pagemachine/typo3-formlog

Form log for TYPO3

23233.9k8](/packages/pagemachine-typo3-formlog)

PHPackages © 2026

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