PHPackages                             ximeng1987/think-1987 - 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. ximeng1987/think-1987

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

ximeng1987/think-1987
=====================

think log

v2.0(7y ago)014Apache-2.0PHPPHP &gt;=5.6.0

Since Dec 15Pushed 7y agoCompare

[ Source](https://github.com/ximeng1987/think-1987)[ Packagist](https://packagist.org/packages/ximeng1987/think-1987)[ RSS](/packages/ximeng1987-think-1987/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

think-log
=========

[](#think-log)

写入LOG日志，支持文件及SocketLog。

安装

```
composer require topthink/think-log

```

用法：

```
$log = new \think\Log;
$log->init([
	'type'=>'file',
	'path'=>'./runtime/logs/',
]);
$log->record('error info','error');
$log->error('error info');
$log->info('log info');
$log->save();
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.1% 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 ~183 days

Total

2

Last Release

2888d ago

Major Versions

v1.0 → v2.02018-06-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/656dc592650945ab055edc9e96474b8f6d8958ca297a16435a5e48926f958692?d=identicon)[ximeng1987](/maintainers/ximeng1987)

---

Top Contributors

[![big-dream](https://avatars.githubusercontent.com/u/9215157?v=4)](https://github.com/big-dream "big-dream (4 commits)")[![liu21st](https://avatars.githubusercontent.com/u/1111670?v=4)](https://github.com/liu21st "liu21st (2 commits)")[![ximeng1987](https://avatars.githubusercontent.com/u/38679655?v=4)](https://github.com/ximeng1987 "ximeng1987 (1 commits)")

### Embed Badge

![Health badge](/badges/ximeng1987-think-1987/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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