PHPackages                             ymirapp/monolog-bridge - 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. ymirapp/monolog-bridge

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

ymirapp/monolog-bridge
======================

Monolog integration for Ymir

v1.0.0(5mo ago)01.8k↑956.3%1MITPHPPHP &gt;=7.2.5CI passing

Since Feb 1Pushed 5mo agoCompare

[ Source](https://github.com/ymirapp/monolog-bridge)[ Packagist](https://packagist.org/packages/ymirapp/monolog-bridge)[ RSS](/packages/ymirapp-monolog-bridge/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (4)Versions (2)Used By (1)

 [ ![](https://camo.githubusercontent.com/571122d0662d7202c3e3afc2ed075ba7a428a7a8193a2b23f25f07f7a6191a69/68747470733a2f2f63646e2d7374642e64726f706c722e6e65742f66696c65732f6163635f3638303830362f36396663336b) ](https://ymirapp.com)

Ymir Monolog Bridge
===================

[](#ymir-monolog-bridge)

[![Actions Status](https://github.com/ymirapp/monolog-bridge/workflows/Continuous%20Integration/badge.svg)](https://github.com/ymirapp/monolog-bridge/actions)

The Ymir Monolog Bridge provides integration for [Monolog](https://github.com/Seldaek/monolog) with [Ymir](https://ymirapp.com).

Requirements
------------

[](#requirements)

- PHP &gt;= 7.2.5
- Monolog &gt;= 2.0

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

[](#installation)

Install the Ymir Monolog Bridge in your project using composer:

```
$ composer require ymirapp/monolog-bridge
```

Usage
-----

[](#usage)

### CloudWatchFormatter

[](#cloudwatchformatter)

The `CloudWatchFormatter` is optimized for AWS CloudWatch logs. It ensures that log messages are formatted correctly for CloudWatch, sanitizing newlines and moving exceptions to the root of the log record for better visibility.

```
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use Ymir\Bridge\Monolog\Formatter\CloudWatchFormatter;

$logger = new Logger('default');
$handler = new StreamHandler('php://stderr');
$handler->setFormatter(new CloudWatchFormatter());

$logger->pushHandler($handler);

$logger->info('Hello, CloudWatch!');
```

Contributing
------------

[](#contributing)

Install dependencies using composer:

```
$ composer install
```

Links
-----

[](#links)

- [Documentation](https://docs.ymirapp.com)

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance73

Regular maintenance activity

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

152d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bdb33971e8d267c6c882f430069fc3257d0f3de3347b1b0ad4016c79a6fc238c?d=identicon)[ymirapp](/maintainers/ymirapp)

---

Top Contributors

[![carlalexander](https://avatars.githubusercontent.com/u/654684?v=4)](https://github.com/carlalexander "carlalexander (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisRector

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/ymirapp-monolog-bridge/health.svg)

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

###  Alternatives

[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k203.8M358](/packages/symfony-monolog-bridge)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[illuminate/log

The Illuminate Log package.

6225.3M623](/packages/illuminate-log)[spatie/flare-client-php

Send PHP errors to Flare

177161.5M23](/packages/spatie-flare-client-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[graycore/magento2-stdlogging

A Magento 2 module that changes all logging handlers to stdout

2587.9k](/packages/graycore-magento2-stdlogging)

PHPackages © 2026

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