PHPackages                             hh/clogger - 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. hh/clogger

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

hh/clogger
==========

Delegate log to monolog for ThinkPHP6

v0.1.6(3y ago)1107MITPHP

Since Jan 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/honeyjim/Think-log-delegation)[ Packagist](https://packagist.org/packages/hh/clogger)[ RSS](/packages/hh-clogger/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (16)Used By (0)

Delegate log to Monolog for ThinkPHP6
=====================================

[](#delegate-log-to-monolog-for-thinkphp6)

Usage
-----

[](#usage)

- composer require hh/clogger

```
use Think\Clogger\Facade\LogFacade as Log;

Log::channel('main')->debug('test info', [
            'context' => ['It`s Cool'],
        ])
```

- Configurations

```
 'main' => [
            'type' => 'daily',
            'path' => think\Container::getInstance()->make('app')->getRuntimePath().'logs'.DIRECTORY_SEPARATOR.'main.log',
            'days' => 180,
        ]
```

- Sql log

```
Db::listen(function ($sql, $time, $master) {
    $dbLogger = new Logger('db.logger');
    $handler = new RotatingFileHandler(Container::getInstance()->make('app')->getRuntimePath().'logs'.DIRECTORY_SEPARATOR.'sql.log', 180);
    $dbLogger->pushHandler($handler);

    if (0 === strpos($sql, 'CONNECT:')) {
        $dbLogger->info($sql);
        return;
    }

    if (is_bool($master)) {
        $master = $master ? 'master|' : 'slave|';
    } else {
        $master = '';
    }

    $dbLogger->info($sql . ' [ ' . $master . 'RunTime:' . $time . 's ]');
});
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.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 ~1 days

Total

15

Last Release

1269d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c5efb1c29f6959208faee58340a653f78bcfe9a454c471af1ad62bb2ba78298d?d=identicon)[honeyjim](/maintainers/honeyjim)

---

Top Contributors

[![honeyjim](https://avatars.githubusercontent.com/u/7529929?v=4)](https://github.com/honeyjim "honeyjim (29 commits)")[![Mr-hiddenaire](https://avatars.githubusercontent.com/u/59389295?v=4)](https://github.com/Mr-hiddenaire "Mr-hiddenaire (1 commits)")

### Embed Badge

![Health badge](/badges/hh-clogger/health.svg)

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

###  Alternatives

[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k203.8M358](/packages/symfony-monolog-bridge)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[illuminate/log

The Illuminate Log package.

6225.3M622](/packages/illuminate-log)[spatie/flare-client-php

Send PHP errors to Flare

177161.5M23](/packages/spatie-flare-client-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[graycore/magento2-stdlogging

A Magento 2 module that changes all logging handlers to stdout

2587.9k](/packages/graycore-magento2-stdlogging)

PHPackages © 2026

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