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

ActiveLibrary

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 1mo ago

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 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

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

1222d 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

[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k5](/packages/elgg-elgg)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[drevops/git-artifact

Package artifact from your codebase in CI and push it to a separate git repo.

2133.2k](/packages/drevops-git-artifact)[doppar/framework

The Doppar Framework

366.7k8](/packages/doppar-framework)

PHPackages © 2026

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