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

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

exewen/logger
=============

A logger component for Exewen.

v2.0.3(1y ago)02031MITPHPPHP &gt;=7.3

Since May 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/exewen/logger)[ Packagist](https://packagist.org/packages/exewen/logger)[ RSS](/packages/exewen-logger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (14)Used By (1)

安装组件
----

[](#安装组件)

```
composer require exewen/logger
```

复制配置
----

[](#复制配置)

```
cp -rf ./publish/exewen /your_project/config
```

初始化
---

[](#初始化)

```
!defined('BASE_PATH_PKG') && define('BASE_PATH_PKG', dirname(__DIR__, 1));
```

写入日志
----

[](#写入日志)

```
# 初始化DI
$app      = ApplicationContext::getContainer();
$app->setProviders([LoggerProvider::class]);
$this->app = $app;

/** @var LoggerInterface $logger */
$logger = $this->app->get(LoggerInterface::class);
$logger->info("info日志");
$logger->debug("debug日志");
$logger->error("error日志");
```

使用 facades
----------

[](#使用-facades)

```
composer require exewen/facades
```

```
# info
LoggerFacade::info("info日志");
# error
LoggerFacade::error("error日志");
# warning
LoggerFacade::warning("warning日志");
# notice
LoggerFacade::notice("notice日志");
# debug
LoggerFacade::debug("debug日志");
# request
LoggerFacade::request("request日志");
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance46

Moderate activity, may be stable

Popularity14

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

Recently: every ~20 days

Total

12

Last Release

417d ago

Major Versions

v1.1.3 → v2.0.02025-03-14

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

v1.1.0PHP &gt;=7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f67ab9c12b404ad0421408edf24832eff0d0d7c750c85a784b1a3a15fb2648f?d=identicon)[exeweb](/maintainers/exeweb)

---

Top Contributors

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

---

Tags

phploggerexewen

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[justbetter/magento2-sentry

Magento 2 Logger for Sentry

1851.5M3](/packages/justbetter-magento2-sentry)[logtail/monolog-logtail

Logtail handler for Monolog

233.2M3](/packages/logtail-monolog-logtail)[tomatophp/filament-logger

Log all user activity to file or log driver and preview it on your FilamentPHP panel

162.2k](/packages/tomatophp-filament-logger)[opengento/module-webapi-logger

This module allows you to analyze all the webapi rest done call toward your Magento.

1014.9k](/packages/opengento-module-webapi-logger)

PHPackages © 2026

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