PHPackages                             mix/log - 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. mix/log

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

mix/log
=======

Monolog support Swoole coroutine and cli console printing

v2.2.14(5y ago)15.6k1Apache-2.0PHPPHP &gt;=7.2.0

Since Dec 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mix-php/mix-log)[ Packagist](https://packagist.org/packages/mix/log)[ Docs](https://openmix.org/)[ RSS](/packages/mix-log/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (24)Used By (0)

Mix Monolog
-----------

[](#mix-monolog)

支持 Swoole 协程的 Monolog，支持 cli 控制台打印

Usage
-----

[](#usage)

安装：

```
composer require mix/monolog

```

创建 Logger：

```
$logger  = new \Mix\Monolog\Logger('API', [new \Mix\Monolog\Handler\ConsoleHandler], [new \Monolog\Processor\PsrLogMessageProcessor]);
$handler = new \Mix\Monolog\Handler\RotatingFileHandler(sprintf('%s/runtime/logs/api.log', $basePath), 7);
$logger->pushHandler($handler);

```

调用：

```
$logger->info('server started');

```

License
-------

[](#license)

Apache License Version 2.0,

###  Health Score

32

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

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

Every ~28 days

Total

23

Last Release

2015d ago

PHP version history (2 changes)v2.0.1-Beta2PHP &gt;=7.0.0

v2.2.1PHP &gt;=7.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/750dce87a7bb406671bca9593129d1e0ddc3fb5d52296029792e391cc081c04c?d=identicon)[onanying](/maintainers/onanying)

---

Top Contributors

[![onanying](https://avatars.githubusercontent.com/u/16074765?v=4)](https://github.com/onanying "onanying (18 commits)")

---

Tags

logmixlogswoolecoroutinemonologmix

### Embed Badge

![Health badge](/badges/mix-log/health.svg)

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

###  Alternatives

[theorchard/monolog-cascade

Monolog extension to configure multiple loggers in the blink of an eye and access them from anywhere

1482.2M9](/packages/theorchard-monolog-cascade)[inpsyde/wonolog

Monolog-based logging package for WordPress.

183610.5k3](/packages/inpsyde-wonolog)[logtail/monolog-logtail

Logtail handler for Monolog

233.0M2](/packages/logtail-monolog-logtail)[inpsyde/logzio-monolog

Logz.io integration for Monolog

181.1M1](/packages/inpsyde-logzio-monolog)[mero/yii2-monolog

The Monolog integration for the Yii framework.

41184.5k](/packages/mero-yii2-monolog)[mero/telegram-handler

Monolog handler to send log by Telegram

36112.5k](/packages/mero-telegram-handler)

PHPackages © 2026

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