PHPackages                             bloom-ux/wpdb-monolog - 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. bloom-ux/wpdb-monolog

ActiveWordpress-muplugin

bloom-ux/wpdb-monolog
=====================

Integrate monolog logging with $wpdb

196↓100%PHP

Since Aug 1Pushed 4mo ago4 watchersCompare

[ Source](https://github.com/bloom-ux/wpdb-monolog)[ Packagist](https://packagist.org/packages/bloom-ux/wpdb-monolog)[ RSS](/packages/bloom-ux-wpdb-monolog/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

monolog with WordPress
======================

[](#monolog-with-wordpress)

Use monolog with WordPress and log errors to your database.

Installation
------------

[](#installation)

Install using composer: `composer require bloom-ux/wpdb-monolog:dev-main`.

It will install as a mu-plugin.

If you're using composer's autoloader, you're done.

Components
----------

[](#components)

- `\bloom\WPDB_Monolog\WPDB_Handler` → monolog handler that writes logs to your WordPress database.
- `\bloom\WPDB_Monolog\WP_CLI_Handler` → monolog handler that writes logs to WordPress command line interface.
- `\bloom\WPDB_Monolog\WP_Processor` → monolog processor that adds "extra" data to a monolog record.

Usage
-----

[](#usage)

### Basic

[](#basic)

There are some helper functions to ease the integration:

```
