WP Manifestindependent plugin directory
manifest / developer / monolog-bundle

Monolog Bundle WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

Symfony Monolog-based logging package for WordPress.

★ 1stars
v1.1.4latest · 20d ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/sympress/monolog-bundle/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

SymPress Monolog Bundle

Monolog integration bundle for SymPress WordPress kernel applications.

The package provides a Composer-powered WordPress MU plugin that registers a Monolog logger, channel loggers, configurable handlers, processors, and WordPress-specific logging hooks through the SymPress kernel service container.

Installation

composer require sympress/monolog-bundle

The package requires PHP 8.5, sympress/kernel, monolog/monolog, and psr/log.

Features

  • Default PSR-3 logger service exposed as logger and Psr\Log\LoggerInterface
  • Channel logger support through monolog.logger tags and Monolog attributes
  • Configurable handlers for stream, rotating file, fingers crossed, grouped, filtered, console, mail, syslog, socket, Slack webhook, and related Monolog handler types
  • Handler-to-channel routing with inclusive and exclusive channel rules
  • Tagged processor registration with handler or channel targeting
  • WordPress runtime context processor
  • Kernel throwable, WordPress database, and HTTP API logging hooks
  • Profiler bridge that forwards buffered Monolog records to SymPress Profiler

Usage

When the SymPress kernel discovers the package, it registers SymPress\MonologBundle\MonologBundle and loads monolog-bundle/monolog-bundle.php as the MU plugin entry point.

<?php

use Psr\Log\LoggerInterface;

final readonly class ImportOrders
{
    public function __construct(
        private LoggerInterface $logger,
    ) {
    }

    public function run(): void
    {
        $this->logger->info('Import started.');
    }
}

Configuration

The package ships with a default stream handler and a profiler buffer handler. Project configuration can override handlers and channels through the Monolog extension.

monolog:
    channels:
        - security
    handlers:
        main:
            type: fingers_crossed
            action_level: error
            handler: nested
        nested:
            type: stream
            path: '%kernel.logs_dir%/%kernel.environment%.log'
            level: debug
            nested: true
        security_file:
            type: stream
            path: '%kernel.logs_dir%/security.log'
            channels: [security]

Services can request channel-specific loggers by using Monolog's WithMonologChannel attribute or the monolog.logger service tag.

See docs/handlers.md for the supported handler types, required keys, defaults, and generated service IDs.

Development

composer install
composer qa

Use composer cs:fix to apply automatic style fixes.

License

This package is licensed under GPL-2.0-or-later.

Releases

9 releases.

Tag
Published
v1.1.4 latest
Oct 5, 2026 20d ago
Oct 3, 2026 22d ago
Oct 3, 2026 22d ago
Oct 3, 2026 22d ago
Oct 3, 2026 22d ago
Oct 2, 2026 23d ago
Oct 2, 2026 23d ago
Jun 19, 2026 4mo ago
Jun 14, 2026 4mo ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

Monolog Bundle 1.0.0 · audited by WP Registry

No security issues found.

Audited release
1.0.0
Findings
none
Worst severity
—
Content hash
cfe290a7acf49ef5dace142c…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.