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

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

xuey490/log
===========

A custom logging library for FssPHP Framework based on Monolog with file size rotation support.

1.0.2(7mo ago)1551MITPHPPHP ^8.1

Since Dec 2Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/xuey490/log)[ Packagist](https://packagist.org/packages/xuey490/log)[ RSS](/packages/xuey490-log/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (3)Versions (4)Used By (1)

这是一个基于monolog开发的，可以自动分割日志的类库。日志自动按大小分片保存，超过大小后自动分割，并保留指定天数的日志

A custom logging library for FssPHP Framework based on Monolog with file size rotation support.

### 安装

[](#安装)

```
composer require xuey490/log

```

### 初始化使用

[](#初始化使用)

```
use Framework\Log\LoggerService;

$config = [
    'log_channel'   => 'my-app',
    'log_path'      => __DIR__ . '/storage/logs',
    'log_size'      => 10 * 1024 * 1024, // 10MB
    'log_keep_days' => 15,
    'log_date_format' => 'Y-m-d H:i:s',
];

$logger = new LoggerService($config);
$logger->info("Log system initialized successfully!");

```

### 日志片段 /storage/logs/app.log

[](#日志片段--storagelogsapplog)

```
[2025-12-03T07:29:22.869860+08:00] app.INFO: [Event Expired] Listener files changed or cache expired. Rescanning... [] []
[2025-12-03T07:29:22.926525+08:00] app.INFO: [Event] Scanned and found 2 subscribers. [] []
[2025-12-03T07:29:24.227385+08:00] app.INFO: [Route Loaded]Loaded 128 routes (manual: 5, annotated: 123) [] []
[2025-12-03T07:29:30.594206+08:00] app.INFO: [Event Scan] Subscribers loaded from cache (fingerprint match). [] []
[2025-12-03T07:29:30.606746+08:00] app.INFO: [Route Loaded]Loaded 128 routes (manual: 5, annotated: 123) [] []
[2025-12-03T07:29:40.230684+08:00] app.INFO: [Event Scan] Subscribers loaded from cache (fingerprint match). [] []
[2025-12-03T07:29:40.242940+08:00] app.INFO: [Route Loaded]Loaded 128 routes (manual: 5, annotated: 123) [] []
[2025-12-03T07:29:42.975919+08:00] app.INFO: [Request processed] {"method":"GET","path":"/blog","status":200,"duration":"2728.64ms","ip":"::1"} []

```

SQL debug log

```
[2025-12-03T07:44:02.805026+08:00] app.DEBUG: [ThinkORM Info] {"sql":"CONNECT:[ UseTime:0.018970s ] mysql:host=127.0.0.1;port=3306;dbname=oa;charset=utf8mb4","time":"1,764,719,042.804996s","explain":[]} []
[2025-12-03T07:44:02.814690+08:00] app.DEBUG: [ThinkORM Info] {"sql":"SHOW FULL COLUMNS FROM `oa_custom`","time":"0.009247s","explain":[]} []
[2025-12-03T07:44:02.833638+08:00] app.DEBUG: [ThinkORM Info] {"sql":"SELECT * FROM `oa_custom` WHERE  `status` = 1 ORDER BY id desc","time":"0.000428s","explain":[]} []
[2025-12-03T07:44:02.944503+08:00] app.DEBUG: [ThinkORM Info] {"sql":"SELECT COUNT(*) AS think_count FROM `oa_custom` WHERE  `status` = 1","time":"0.022348s","explain":[]} []
[2025-12-03T07:44:02.945115+08:00] app.DEBUG: [ThinkORM Info] {"sql":"SELECT * FROM `oa_custom` WHERE  `status` = 1 LIMIT 0,3","time":"0.000349s","explain":[]} []

```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance65

Regular maintenance activity

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity46

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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

212d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/237189208?v=4)[xuey490](/maintainers/xuey490)[@xuey490](https://github.com/xuey490)

---

Top Contributors

[![xuey490](https://avatars.githubusercontent.com/u/237189208?v=4)](https://github.com/xuey490 "xuey490 (12 commits)")

---

Tags

logphploggermonologfssphp

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[illuminate/log

The Illuminate Log package.

6225.3M623](/packages/illuminate-log)

PHPackages © 2026

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