PHPackages                             crxgames/monolog-pomm - 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. [Database &amp; ORM](/categories/database)
4. /
5. crxgames/monolog-pomm

ActiveLibrary[Database &amp; ORM](/categories/database)

crxgames/monolog-pomm
=====================

A handler for Monolog that sends messages to Postgres via a POMM connection

1.0.0(10y ago)24.4k1MITPHP

Since May 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/crxgames/monolog-pomm)[ Packagist](https://packagist.org/packages/crxgames/monolog-pomm)[ Docs](https://github.com/crxgames/monolog-pomm)[ RSS](/packages/crxgames-monolog-pomm/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

monolog-pomm
============

[](#monolog-pomm)

PostgreSQL Handler for Monolog utilizing the POMM library (), which allows to store log messages in a Postgres Table. It can log text messages to a specific table, and creates the table automatically if it does not exist.

Based on

Installation
============

[](#installation)

monolog-pomm is available via composer. Just add the following line to your required section in composer.json and do a `php composer.phar update`.

```
"crxgames/monolog-pomm": ">1.0.0"

```

Usage
=====

[](#usage)

Just use it as any other Monolog Handler, push it to the stack of your Monolog Logger instance. The Handler however needs some parameters:

- **$pomm** POMM Session instance of your database. Pass along the POMM instantiation of your database connection with your database selected.
- **$table** The table name where the logs should be stored
- **$level** can be any of the standard Monolog logging levels. Use Monologs statically defined contexts. *Defaults to Logger::DEBUG*
- **$bubble** *Defaults to true*

Examples
========

[](#examples)

Given that $pomm is your database session instance, you could use the class as follows:

```
//Import class
use PommPGHandler\PommPGHandler;

//Create MysqlHandler
$pommHandler = new PommPGHandler($pomm, "log");

//Create logger
$logger = new \Monolog\Logger($context);
$logger->pushHandler($mySQLHandler);

//Now you can use the logger, and further attach additional information
$logger->addWarning("This is a great message, woohoo!", array('username'  => 'John Doe', 'userid'  => 245));
```

License
=======

[](#license)

This tool is free software and is distributed under the MIT license. Please have a look at the LICENSE file for further information.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Unknown

Total

1

Last Release

3697d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1211476?v=4)[Cody Mays](/maintainers/crxgames)[@crxgames](https://github.com/crxgames)

---

Tags

logloggingdatabasepostgresqlmonologpomm

### Embed Badge

![Health badge](/badges/crxgames-monolog-pomm/health.svg)

```
[![Health](https://phpackages.com/badges/crxgames-monolog-pomm/health.svg)](https://phpackages.com/packages/crxgames-monolog-pomm)
```

###  Alternatives

[wazaari/monolog-mysql

A handler for Monolog that sends messages to MySQL

139897.4k6](/packages/wazaari-monolog-mysql)[bradmkjr/monolog-wordpress

A handler for Monolog that sends messages to MySQL via WordPress Functions

2717.5k](/packages/bradmkjr-monolog-wordpress)[karelwintersky/monolog-pdo-handler

A handler for Monolog that stores data via PDO driver to Database

109.2k1](/packages/karelwintersky-monolog-pdo-handler)

PHPackages © 2026

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