PHPackages                             kxutils/log4l - 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. kxutils/log4l

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

kxutils/log4l
=============

laravel通用日志,可自定义日志路径

0.8(10y ago)029BSDPHP &gt;=5.5.9

Since Jun 25Compare

[ Source](https://github.com/uqian/log4l)[ Packagist](https://packagist.org/packages/kxutils/log4l)[ RSS](/packages/kxutils-log4l/feed)WikiDiscussions Synced yesterday

READMEChangelogDependenciesVersions (9)Used By (0)

操作步骤
====

[](#操作步骤)

1.在要调用的项目的`composer.json`中增加:
-----------------------------

[](#1在要调用的项目的composerjson中增加)

### 1.1 require标签增加

[](#11-require标签增加)

```
kxutils/log4l
```

### 1.2 增加repositories标签(如果没有),并增加

[](#12-增加repositories标签如果没有并增加)

```
"repositories":[
{
    "type":"vcs",
    "url":"git@git.7color.net.cn:lib/log4l.git"
}
]
```

### 1.3 更新

[](#13-更新)

```
composer install 或者 composer update
```

### 1.4 剩余操作

[](#14-剩余操作)

拷贝`log4l.php.example`文件到`app/config`中,并把文件改名为`log4l.php`

使用方法
====

[](#使用方法)

```
use Log4l\Log;
// 默认调用方式
Log::info($msg);
Log::error($msg);
//配置路径调用方式
Log::conn("test")->info($msg);

//其他能用方法有:
'debug'     => Logger::DEBUG,
'info'      => Logger::INFO,
'notice'    => Logger::NOTICE,
'warning'   => Logger::WARNING,
'error'     => Logger::ERROR,
'critical'  => Logger::CRITICAL,
'alert'     => Logger::ALERT,
'emergency' => Logger::EMERGENCY,
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.7% 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

8

Last Release

3655d ago

### Community

Maintainers

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

---

Top Contributors

[![kongq](https://avatars.githubusercontent.com/u/13146597?v=4)](https://github.com/kongq "kongq (11 commits)")[![zhaoweiguo](https://avatars.githubusercontent.com/u/975936?v=4)](https://github.com/zhaoweiguo "zhaoweiguo (4 commits)")[![frame-php-free](https://avatars.githubusercontent.com/u/42052492?v=4)](https://github.com/frame-php-free "frame-php-free (2 commits)")

### Embed Badge

![Health badge](/badges/kxutils-log4l/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

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

API for OpenTelemetry PHP.

1941.5M265](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M323](/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)
