PHPackages                             weijiajia/saloonphp-logs-plugin - 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. weijiajia/saloonphp-logs-plugin

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

weijiajia/saloonphp-logs-plugin
===============================

SaloonPHP Logs Plugin

0.0.6(1y ago)0511MITPHPPHP ^8.0

Since Feb 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jackchang1025/saloonphp-logs-plugin)[ Packagist](https://packagist.org/packages/weijiajia/saloonphp-logs-plugin)[ RSS](/packages/weijiajia-saloonphp-logs-plugin/feed)WikiDiscussions main Synced 1mo ago

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

SaloonPHP Logs Plugin
=====================

[](#saloonphp-logs-plugin)

Installation
------------

[](#installation)

Install SaloonPHP Logs Plugin using Composer:

```
composer require weijiajia/saloonphp-logs-plugin
```

Usage Examples
--------------

[](#usage-examples)

1. Create an ExampleConnector instance:

```
use Weijiajia\SaloonphpLogsPlugin\Traits\HasLogger;

class ExampleConnector extends Connector
{
    use HasLogger;

    // set default log
    public function getLogger(): ?LoggerInterface
    {
        return new Logger('saloonphp-logs-plugin');
    }

    // custom format request log
    protected function formatRequestLog(PendingRequest $pendingRequest): ?PendingRequest
    {

        $requestClass = $pendingRequest->getRequest()::class;

        $this->getLogger()?->info("{$requestClass} Request:", [
            'connector' => $pendingRequest->getConnector()::class,
            'request' => $requestClass,
            'method'  => $pendingRequest->getMethod(),
            'uri'     => (string)$pendingRequest->getUri(),
            'headers' => $pendingRequest->headers(),
            'config' => $pendingRequest->config()->all(),
            'body'    => (string)$pendingRequest->body(),
        ]);

        return $pendingRequest;
    }

    // custom format response log
    protected function formatResponseLog(Response $response): ?Response
    {
        $requestClass = $response->getRequest()::class;

        $this->getLogger()?->info("{$requestClass} Response:", [
            'status'  => $response->status(),
            'headers' => $response->headers(),
            'body'    => $response->body(),
        ]);

        return $response;
    }
}

$connector = new ExampleConnector();
$connector->withLogger($logger);
```

License
-------

[](#license)

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

Contact
-------

[](#contact)

If you have any questions or suggestions, please contact:

-

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance47

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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

Total

6

Last Release

435d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/636557533fde1107bb301eca908de1c17c9ea7073d5c9c0fbad725ccd0800bde?d=identicon)[jackchang1025](/maintainers/jackchang1025)

---

Top Contributors

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

---

Tags

pluginlogssaloonphp

### Embed Badge

![Health badge](/badges/weijiajia-saloonphp-logs-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/weijiajia-saloonphp-logs-plugin/health.svg)](https://phpackages.com/packages/weijiajia-saloonphp-logs-plugin)
```

###  Alternatives

[opcodesio/log-viewer

Fast and easy-to-use log viewer for your Laravel application

4.3k8.9M50](/packages/opcodesio-log-viewer)[analog/analog

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

3451.5M24](/packages/analog-analog)[backpack/logmanager

An interface to preview, download and delete Laravel log files.

274688.9k3](/packages/backpack-logmanager)[jackiedo/log-reader

An easy log reader and management tool for Laravel

151376.5k4](/packages/jackiedo-log-reader)[kabbouchi/laravel-ward

25364.1k1](/packages/kabbouchi-laravel-ward)[facile-it/sentry-module

This module allows integration of Sentry Client into laminas and mezzio

19372.5k](/packages/facile-it-sentry-module)

PHPackages © 2026

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