PHPackages                             functions/think-monolog - 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. functions/think-monolog

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

functions/think-monolog
=======================

ThinkPHP5.1框架日志扩展monolog

141PHP

Since Jun 20Pushed 7y agoCompare

[ Source](https://github.com/YangHuiFor/thinkphp-monolog)[ Packagist](https://packagist.org/packages/functions/think-monolog)[ RSS](/packages/functions-think-monolog/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

基本信息
====

[](#基本信息)

该项目主要是根据thinkphp日志文件驱动封装的Monolog驱动

基本用法
====

[](#基本用法)

将thinkphp框架的日志配置文件的驱动改成monolog即可。

```
'type' => 'monolog',
```

其他支持参数

```
'log_name' => 'App',
'file_name' => 'app.log', //应用日志文件
'sql_file_name' => 'sql.log', //SQL日志文件
'log_format' => "[%datetime%] #reqId# %level_name% %message%\n" //日志输出格式，同monolog格式
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/86aee8496a99c26078c33c84c1606435e6559170abb6725023f0b2b5bb59a311?d=identicon)[YangHuiFor](/maintainers/YangHuiFor)

---

Top Contributors

[![yimuczhou](https://avatars.githubusercontent.com/u/4995476?v=4)](https://github.com/yimuczhou "yimuczhou (5 commits)")

---

Tags

monologthinkphp5

### Embed Badge

![Health badge](/badges/functions-think-monolog/health.svg)

```
[![Health](https://phpackages.com/badges/functions-think-monolog/health.svg)](https://phpackages.com/packages/functions-think-monolog)
```

###  Alternatives

[psr/log

Common interface for logging libraries

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

API for OpenTelemetry PHP.

1938.5M262](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2326.5M315](/packages/open-telemetry-sdk)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8676.7k](/packages/illuminated-console-logger)

PHPackages © 2026

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