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 4w 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

34

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

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

2154d 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

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[illuminate/log

The Illuminate Log package.

6225.7M674](/packages/illuminate-log)[logtail/monolog-logtail

Logtail handler for Monolog

243.8M3](/packages/logtail-monolog-logtail)[jacklul/monolog-telegram

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

2473.2k2](/packages/jacklul-monolog-telegram)[mhcg/monolog-wp-cli

Extension for Monolog to support outputting to WP-CLI (The WordPress command line interface) when running wp command lines.

10114.8k1](/packages/mhcg-monolog-wp-cli)[alexandre-daubois/monolog-processor-collection

A collection of Monolog processors

1317.7k](/packages/alexandre-daubois-monolog-processor-collection)

PHPackages © 2026

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