PHPackages                             surest/laravel-echo-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. surest/laravel-echo-log

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

surest/laravel-echo-log
=======================

\--

v2.1(3y ago)051MITPHP

Since Oct 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/surest-sky/laravel-echo-log)[ Packagist](https://packagist.org/packages/surest/laravel-echo-log)[ RSS](/packages/surest-laravel-echo-log/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (4)Used By (0)

laravel-echo-log
----------------

[](#laravel-echo-log)

这是一个 Laravel 的简单日志输出包，可支简单支持配置日志信息等等

安装
--

[](#安装)

```
composer require 'surest/laravel-echo-log' -vvv --ignore-platform-reqs

```

配置
--

[](#配置)

```
cp vendor/surest/laravel-echo-log/src/clog.php ./config/clog.php

```

注释可见 `config/clog.php`

**env 配置**

```
CLOG_ENABLE = true
CLOG_PATH = storage_path('logs')
CLOG_PREFIX = ''
CLOG_REQUEST_ON = true

```

请求日志记录
------

[](#请求日志记录)

1、进入`app/Http/Kernel.php`, 新增全局路由

```
Surest\SimpleLog\Middlewares\SimpleMiddleware::class

example：

    use Surest\SimpleLog\Middlewares\SimpleMiddleware;
    return [
        protected $middleware = [
            SimpleMiddleware::class
        ]
    ];

```

使用例
---

[](#使用例)

1、默认记录所有请求日志

```
# 关闭请求日志输出
CLOG_REQUEST_ON=disable

```

2、日志输出

```
$msg = 'dcf';
$path = __DIR__;
$logger = Logging::getCLogger('path-info');
$logger->info('path', compact('path', 'msg'));

```

输出结果:

```
> request_2020-03-15.log
{"message":"request-all","context":{"log_at":"2020-03-15T22:11:09.576Z","target_url":"http://blog/test","method":"GET","params":{"a":"1","argv":["bin/hyperf.php","start"]},"agent":"PostmanRuntime/7.23.0","module_name":"blog","server_ip":"127.0.0.1","server_port":null,"client_ip":"127.0.0.1","extra":[]},"level":200,"level_name":"INFO","channel":"request","datetime":{"date":"2020-03-15 22:11:09.576636","timezone_type":3,"timezone":"Asia/Shanghai"},"extra":[]}

> biz-path-info_2020-03-15.log
{"message":"path","context":{"path":"/var/www/html/xiaoe/hyperf-skeleton/app/Controller","msg":"dcf"},"level":200,"level_name":"INFO","channel":"path-info","datetime":{"date":"2020-03-15 22:11:09.665802","timezone_type":3,"timezone":"Asia/Shanghai"},"extra":[]}

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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 ~182 days

Total

3

Last Release

1344d ago

Major Versions

1.0 → v2.02021-12-09

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29169847?v=4)[surest(尘锋)](/maintainers/surest-sky)[@surest-sky](https://github.com/surest-sky)

---

Top Contributors

[![surest-sky](https://avatars.githubusercontent.com/u/29169847?v=4)](https://github.com/surest-sky "surest-sky (6 commits)")

### Embed Badge

![Health badge](/badges/surest-laravel-echo-log/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

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

API for OpenTelemetry PHP.

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

SDK for OpenTelemetry PHP.

2328.5M337](/packages/open-telemetry-sdk)

PHPackages © 2026

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