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

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

cjs/log
=======

The cjs Log package.

2165PHP

Since May 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jellycheng/cjsLog)[ Packagist](https://packagist.org/packages/cjs/log)[ RSS](/packages/cjs-log/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

cjsLog
======

[](#cjslog)

cjs,log,cjs log,monolog

### monolog

[](#monolog)

### demo

[](#demo)

$channel = 'dev'; $log = new \\CjsLog\\Writer( new \\Monolog\\Logger($channel) ); #设置日志保存文件 $logFile = sprintf("/data/logs/app/%s.%s", 'jelly', 'log'); #$log-&gt;useFiles($logFile, 'debug'); #只一个文件的方式

\#设置一天一个日志文件，最大保留N天文件 $log-&gt;useDailyFiles($logFile, 5, 'debug');

\#写info级别日志 $log-&gt;info("hello test");

\#写debug级别日志 $log-&gt;debug("hello test");

\#写warning级别日志 $log-&gt;warning("hello test");

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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://avatars.githubusercontent.com/u/5674717?v=4)[jellycheng](/maintainers/jellycheng)[@jellycheng](https://github.com/jellycheng)

---

Top Contributors

[![jellycheng](https://avatars.githubusercontent.com/u/5674717?v=4)](https://github.com/jellycheng "jellycheng (2 commits)")

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

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

API for OpenTelemetry PHP.

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

SDK for OpenTelemetry PHP.

2326.5M317](/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)
