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

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

jathamj/log-notify
==================

A log package that notifies alarms while logging.

v1.1.3(2y ago)0211Apache-2.0PHPPHP &gt;=7.0.0

Since Aug 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/JathamJ/log-notify)[ Packagist](https://packagist.org/packages/jathamj/log-notify)[ RSS](/packages/jathamj-log-notify/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (1)Versions (7)Used By (1)

log-notify
==========

[](#log-notify)

一个记录日志时同时发送消息通知的插件包，支持配置报警策略以及多种通知方式。

### 安装

[](#安装)

```
composer require jathamj/log-notify
```

### 使用

[](#使用)

建议集成到日志包中

```
$handler = new \Jathamj\LogNotify\Handler($config);

$handler->do('ERROR', '订单中心', ['orderId' => 2323, 'sd' => 'sadasd']);
```

### 配置参考

[](#配置参考)

```
return [

    //通知接口
    'api'    => array(
        'default'   => [
            'type'              => 'dingtalk',  //通知接口类型（钉钉）
            'access_token'      => '983d92ec8a7594b927babe9fdbbad116871828f538cb18ab5ebe742547e241c6',
            'secret'            => 'SECc2e0ff9e530b5f2666a023be29f289f146f91fdfe0207e5e3d0e883e11951cf7',
        ],
    ),

    //缓存
    'redis'     => [
        'host'  => '127.0.0.1',
        'port'  => 6379,
    ],

    //报警模块
    'modules'    => array(
        'default'   => [
            'api'               => 'default',    //通知接口 (对应api配置)
            'label'             => '订单中心',    //客户化名称
            'interval'          => 3600,        //统计周期
            'times'             => 3,           //warning触发报警次数
            'frequency'         => 600,         //warning报警间隔
            'error.frequency'   => 1,           //error报警间隔
        ],
    ),
];
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

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

Total

6

Last Release

1024d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.0

v1.0.3PHP &gt;=7.0.0

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[notamedia/yii2-sentry

Yii2 logger for Sentry

1272.1M2](/packages/notamedia-yii2-sentry)[phptek/sentry

Sentry.io integration for SilverStripe. Binds Sentry.io to SilverStripe's error &amp; exception handling subsystem.

16210.6k4](/packages/phptek-sentry)[born05/craft-sentry

Pushes Craft CMS errors to Sentry.

10140.4k2](/packages/born05-craft-sentry)[helhum/sentry-typo3

Sentry Integration for TYPO3

2134.4k](/packages/helhum-sentry-typo3)[minbaby/hyperf-sentry

1927.3k](/packages/minbaby-hyperf-sentry)[webpractik/sentry

Module sending logs to sentry

209.4k](/packages/webpractik-sentry)

PHPackages © 2026

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