PHPackages                             sdkcodes/logpress - 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. sdkcodes/logpress

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

sdkcodes/logpress
=================

A laravel package to log incoming requests to your app

1.0.0(6y ago)169MITPHP

Since Apr 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/sdkcodes/logpress)[ Packagist](https://packagist.org/packages/sdkcodes/logpress)[ RSS](/packages/sdkcodes-logpress/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

> ### Log requests coming into your laravel app
>
> [](#log-requests-coming-into-your-laravel-app)

Helps you know exactly what comes in and when. The package will log all query and body parameters attached to a request.

---

Getting started
===============

[](#getting-started)

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

[](#installation)

Install this package via composer

`$ composer require sdkcodes/logpress`

Middleware Usage
----------------

[](#middleware-usage)

\*\* The package comes with a middleware that you can apply either to only the routes you want to log, or all routes.

The middleware lives in the namespace:

`use Sdkcodes\Logpress\Middleware\LogRequests;`

Open your `App\Http\Kernel.php`

To log request to all routes, add the LogRequests api to the `$middleware` array:

```
protected $middleware = [
    \App\Http\Middleware\TrustProxies::class,
    \Fruitcake\Cors\HandleCors::class,
    \App\Http\Middleware\CheckForMaintenanceMode::class,
    \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
    \App\Http\Middleware\TrimStrings::class,
    \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
    LogRequests::class
];

```

Or you can add to specific middleware groups `$middlewareGroups` array e.g 'web' or 'api'.

Or add to the `$routeMiddleware` array to apply on a route by route basis.

Configuration
-------------

[](#configuration)

By default, the package 'avoids' logging fields with the name 'password' or 'pin', however, you can overwrite these values by publishing the config file and updating the 'avoids'

`λ php artisan vendor:publish --provider="Sdkcodes\Logpress\LogpressServiceProvider" --tag=config`

This command publishes a new config file 'logpress.php' to your config directory and you can modify to include all the fields you want to avoid logging.

Output
------

[](#output)

The output generated looks like:

`[2020-04-25 16:42:17] local.INFO: GET / - Body: {"q":"artisan","person":"goodluck"} Query: {"q":"artisan","person":"goodluck"} Full path: http://laravelpackagedev.sdk Scheme: http`

LICENSE
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

2207d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/44eb3a32d546904e615df98a62c831f1960491b00f75ba495d47bc6b965628b4?d=identicon)[sdkcodes](/maintainers/sdkcodes)

---

Top Contributors

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

---

Tags

laravelmiddleware

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sdkcodes-logpress/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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