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.6k14Apache-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 3w ago

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

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

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity66

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

2109d ago

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

v2.2.1PHP &gt;=7.2.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16074765?v=4)[LIU JIAN](/maintainers/onanying)[@onanying](https://github.com/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

[inpsyde/wonolog

Monolog-based logging package for WordPress.

184631.3k7](/packages/inpsyde-wonolog)[logtail/monolog-logtail

Logtail handler for Monolog

233.5M3](/packages/logtail-monolog-logtail)[inpsyde/logzio-monolog

Logz.io integration for Monolog

181.2M1](/packages/inpsyde-logzio-monolog)[jacklul/monolog-telegram

Monolog handler that sends logs through Telegram bot to any chat in HTML format

2469.4k2](/packages/jacklul-monolog-telegram)[lefuturiste/monolog-discord-handler

A simple monolog handler for support Discord webhooks

34116.0k4](/packages/lefuturiste-monolog-discord-handler)[thecoder/laravel-monolog-telegram

Telegram Handler for Monolog

2941.1k](/packages/thecoder-laravel-monolog-telegram)

PHPackages © 2026

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