PHPackages                             sympress/monolog-bundle - 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. sympress/monolog-bundle

ActiveWordpress-muplugin[Logging &amp; Monitoring](/categories/logging)

sympress/monolog-bundle
=======================

Monolog integration bundle for the WordPress kernel.

1.0.1(1mo ago)1144GPL-2.0-or-laterPHPPHP ^8.5CI passing

Since Jun 14Pushed 1w agoCompare

[ Source](https://github.com/SymPress/monolog-bundle)[ Packagist](https://packagist.org/packages/sympress/monolog-bundle)[ RSS](/packages/sympress-monolog-bundle/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

SymPress Monolog Bundle
=======================

[](#sympress-monolog-bundle)

[![Checks](https://camo.githubusercontent.com/e2775dcdf96475de3ac650152b74e6009f63314f2f9dcc9050c91adab9ddf22e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f53796d50726573732f6d6f6e6f6c6f672d62756e646c652f71612e796d6c3f6272616e63683d6d61696e266c6162656c3d636865636b73)](https://github.com/SymPress/monolog-bundle/actions/workflows/qa.yml) [![Release](https://camo.githubusercontent.com/db11c159aa11faf056acb0a063cd41c44e78e94fc8f1d268513257706848c009/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f53796d50726573732f6d6f6e6f6c6f672d62756e646c653f6c6162656c3d72656c65617365)](https://github.com/SymPress/monolog-bundle/releases) [![PHP](https://camo.githubusercontent.com/e16e21e5d599d37f2c8fe5a00bd28c10c192452b9ff8ef3b2fac17a2f95fd451/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f73796d70726573732f6d6f6e6f6c6f672d62756e646c652f7068702e7376673f6c6162656c3d706870)](https://packagist.org/packages/sympress/monolog-bundle) [![Downloads](https://camo.githubusercontent.com/da9e401240651f6658a73029b3f29cd11fc78c9148e53f16f8e7e43826084ba6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73796d70726573732f6d6f6e6f6c6f672d62756e646c652e7376673f6c6162656c3d646f776e6c6f616473)](https://packagist.org/packages/sympress/monolog-bundle/stats) [![License: GPL-2.0-or-later](https://camo.githubusercontent.com/26f8b6541ea045cc1dbc2267208158b5a7ebbf5cf437c4b486d80fee9386f77e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d47504c2d2d322e302d2d6f722d2d6c617465722d626c75652e737667)](LICENSE) [![Security Policy](https://camo.githubusercontent.com/7a0ecd25391c2821401e28d753557f53c5fe267b349b8b4032bb4ca1ef462ee7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73656375726974792d706f6c6963792d3265613434662e737667)](SECURITY.md)

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
------------

[](#installation)

```
composer require sympress/monolog-bundle
```

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

Features
--------

[](#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
-----

[](#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.

```
