PHPackages                             thesebas/stream2log - 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. thesebas/stream2log

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

thesebas/stream2log
===================

1.0.0(10y ago)010MITPHP

Since Jun 9Pushed 8y ago1 watchersCompare

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

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

stream2log
==========

[](#stream2log)

Stream to PSR Logger wrapper, example use:

```
class MockLogger extends \Psr\Log\AbstractLogger {
    public function log($level, $message, array $context = array()) {
        fprintf(STDERR, "[%s] [level:%s] %s", date('c', 0x44884488), $level, strtr($message, $context));
    }
}
\thesebas\stream2log\Wrapper::setup();
\thesebas\stream2log\Wrapper::registerLogger('mocklog', new MockLogger());

define("MYERR", fopen("log://mocklog", 'w'));

// regular STDERR output
fprintf(STDERR, "! error message\n");    // ! error message
fprintf(STDERR, "# warning message\n");  // # warning message
fprintf(STDERR, "* info message\n");     // * info message

// writes to MYERR are redirected to and handled by registered logger
fprintf(MYERR, "! error message\n");     // [2006-06-08T15:38:48+00:00] [level:error] error message
fprintf(MYERR, "# warning message\n");   // [2006-06-08T15:38:48+00:00] [level:warning] warning message
fprintf(MYERR, "* info message\n");      // [2006-06-08T15:38:48+00:00] [level:info] info message
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

3673d ago

### Community

Maintainers

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

---

Top Contributors

[![thesebas](https://avatars.githubusercontent.com/u/827416?v=4)](https://github.com/thesebas "thesebas (2 commits)")

---

Tags

psrlogpsr-3

### Embed Badge

![Health badge](/badges/thesebas-stream2log/health.svg)

```
[![Health](https://phpackages.com/badges/thesebas-stream2log/health.svg)](https://phpackages.com/packages/thesebas-stream2log)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B10.9k](/packages/psr-log)[monolog/monolog

Sends your logs to files, sockets, inboxes, databases and various web services

21.4k997.8M7.9k](/packages/monolog-monolog)[apix/log

Minimalist, thin and fast PSR-3 compliant (multi-bucket) logger.

511.1M20](/packages/apix-log)[pagemachine/typo3-formlog

Form log for TYPO3

23233.9k8](/packages/pagemachine-typo3-formlog)[markrogoyski/simplelog-php

Powerful PSR-3 logging. So easy, it's simple.

2819.1k4](/packages/markrogoyski-simplelog-php)

PHPackages © 2026

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