PHPackages                             ddup/logger - 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. ddup/logger

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

ddup/logger
===========

日志

v1.1(5y ago)01614PHP

Since Jun 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/winkb/ddup-logger)[ Packagist](https://packagist.org/packages/ddup/logger)[ RSS](/packages/ddup-logger/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (4)

ddup-logger
===========

[](#ddup-logger)

```
composer require ddup/logger
```

```
function getLogger($client){
    switch ($client){
        case "ali":
            return new \Ddup\Logger\Aliyun\AliyunLogger(
                new \Ddup\Logger\Aliyun\Config\AliyunLogStruct(
                    [
                        'access_key_id'     => '',
                        'access_key_secret' => '',
                        'endpoint'          => '',
                        'project'           => '',
                        'store'             => '',
                        'topic'             => ''
                    ]
                ));
        break;
        case "lazy":
            return new \Ddup\Logger\Cli\LazyLogger;
        break;
        default:
            return  new \Ddup\Logger\Cli\CliLogger;
    }
}
```

```
getLogger("lazy")->info('不处理', [
    'con' => '登高一呼时才懂，始终在为你心痛'
]);

getLogger("ali")->info('写入阿里云', [
    'con' => '登高一呼时才懂，始终在为你心痛'
]);

getLogger("cli")->info('输出到终端', [
    'con' => '登高一呼时才懂，始终在为你心痛'
]);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

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

Unknown

Total

1

Last Release

2152d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

loggerddupcli-loggeraliyun-logger

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ddup-logger/health.svg)

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

###  Alternatives

[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[justbetter/magento2-sentry

Magento 2 Logger for Sentry

1851.5M3](/packages/justbetter-magento2-sentry)[marvinlabs/laravel-discord-logger

Logging to a discord channel in Laravel

2081.1M2](/packages/marvinlabs-laravel-discord-logger)[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k7](/packages/inpsyde-wonolog)[amphp/log

Non-blocking logging for PHP based on Amp, Revolt, and Monolog.

402.6M70](/packages/amphp-log)[apix/log

Minimalist, thin and fast PSR-3 compliant (multi-bucket) logger.

511.0M18](/packages/apix-log)

PHPackages © 2026

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