PHPackages                             madebyextreme/exceptions-to-stream - 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. madebyextreme/exceptions-to-stream

ActiveCraft-plugin

madebyextreme/exceptions-to-stream
==================================

A small plugin to capture thrown exceptions (excluding status codes in the 400 range) to send to standard error stream

2.0.0(4y ago)0348MITPHP

Since Apr 3Pushed 4y ago2 watchersCompare

[ Source](https://github.com/extreme-creations/craft-exceptionstostream)[ Packagist](https://packagist.org/packages/madebyextreme/exceptions-to-stream)[ RSS](/packages/madebyextreme-exceptions-to-stream/feed)WikiDiscussions master Synced today

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

Exceptions To Stream plugin for Craft CMS 3.x
=============================================

[](#exceptions-to-stream-plugin-for-craft-cms-3x)

A small plugin to capture thrown exceptions (excluding status codes in the 400 range) to send to standard error stream

[![Screenshot](resources/img/plugin-logo.png)](resources/img/plugin-logo.png)

Icons by [svgrepo.com](https://www.svgrepo.com/svg/38944/river) &amp; [pngrepo.com](https://www.pngrepo.com/svg/129426/river)

Usage
-----

[](#usage)

### Exceptions

[](#exceptions)

Exceptions thrown by craft will be handled automatically as this plugin listens to the Craft event `ErrorHandler::EVENT_BEFORE_HANDLE_EXCEPTION`. This plugin would treat an exception thrown by Craft as `CRITICAL` level which appears to best match for a generic purpose when handling ALL potential exceptions.

[Monolog's description](https://github.com/Seldaek/monolog/blob/main/doc/01-usage.md#log-levels) taken from RFC 5424 standard:

> CRITICAL (500): Critical conditions. Example: Application component unavailable, unexpected exception.

### Custom logging

[](#custom-logging)

For sending custom logs to the stream:

```
use madebyextreme\exceptionstostream\ExceptionsToStream;

public function bob()
{
    ExceptionsToStream::getInstance()->log->debug('message');
    ExceptionsToStream::getInstance()->log->info('message');
    ExceptionsToStream::getInstance()->log->notice('message');
    ExceptionsToStream::getInstance()->log->warning('message');
    ExceptionsToStream::getInstance()->log->error('message');
    ExceptionsToStream::getInstance()->log->critical('message');
    ExceptionsToStream::getInstance()->log->alert('message');
    ExceptionsToStream::getInstance()->log->emergency('message');
}
```

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

[](#requirements)

This plugin requires Craft CMS 3.0.0-beta.23 or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project where your `composer.json` exists:

    ```
     cd /path/to/project

    ```
2. Updated `composer.json`:

    ```
     "repositories": [
       {
         "type": "vcs",
         "url": "https://github.com/extreme-creations/craft-exceptionstostream.git"
       }
     ]

    ```
3. Then tell Composer to load the plugin:

    ```
     composer require madebyextreme/exceptions-to-stream

     or

     docker-compose exec php bash -c "cd /var/www/site/craft/ && composer require madebyextreme/exceptions-to-stream"

    ```
4. In the Control Panel, go to Settings → Plugins and click the “Install” button for Exceptions To Stream, Or:

    ```
     ./craft plugin/install exceptions-to-stream

     or

     docker-compose exec php bash -c "cd /var/www/site/craft/ && ./craft plugin/install exceptions-to-stream"

    ```

Brought to you by [Extreme](https://madebyextreme.com/)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Every ~60 days

Total

5

Last Release

1619d ago

Major Versions

1.0.4 → 2.0.02021-12-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/7cb835464f5decd476fa0ff16ac5862be164fafe3887cca24ff26649c90a8259?d=identicon)[joepagan](/maintainers/joepagan)

---

Top Contributors

[![joepagan](https://avatars.githubusercontent.com/u/2337910?v=4)](https://github.com/joepagan "joepagan (35 commits)")

---

Tags

cmsCraftcraftcmscraft-pluginexceptions to stream

### Embed Badge

![Health badge](/badges/madebyextreme-exceptions-to-stream/health.svg)

```
[![Health](https://phpackages.com/badges/madebyextreme-exceptions-to-stream/health.svg)](https://phpackages.com/packages/madebyextreme-exceptions-to-stream)
```

###  Alternatives

[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.4M46](/packages/nystudio107-craft-seomatic)[verbb/image-resizer

Resize assets when they are uploaded.

127269.1k7](/packages/verbb-image-resizer)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[wrav/oembed

A simple plugin to extract media information from websites, like youtube videos, twitter statuses or blog articles.

36205.0k3](/packages/wrav-oembed)[verbb/hyper

A user-friendly links field for Craft.

24130.9k9](/packages/verbb-hyper)

PHPackages © 2026

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