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

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

dejwcake/advanced-logger
========================

Advanced logger

2.0.0(2mo ago)011.1k↑140.8%11MITPHPPHP ^8.5CI passing

Since May 7Pushed 2mo agoCompare

[ Source](https://github.com/dejwCake/advanced-logger)[ Packagist](https://packagist.org/packages/dejwcake/advanced-logger)[ RSS](/packages/dejwcake-advanced-logger/feed)WikiDiscussions main Synced yesterday

READMEChangelog (5)Dependencies (14)Versions (10)Used By (1)

Advanced Logger
===============

[](#advanced-logger)

Advanced Logger is a Laravel package that automatically logs every HTTP request made to your Laravel application. Each request is assigned a unique hash, which can also be included in your standard logs to easily match log entries to a specific request.

This package is inspired by  by Anderson Andrade.

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

[](#installation)

### Composer

[](#composer)

Run `composer require dejwcake/advanced-logger` in your terminal.

### Laravel

[](#laravel)

This package is for Laravel 13.

To publish config file, run

```
php artisan vendor:publish --provider="Brackets\AdvancedLogger\AdvancedLoggerServiceProvider"
```

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

[](#configuration)

All options are described in `config/advanced-logger.php`.

Using request hash in standard log file
---------------------------------------

[](#using-request-hash-in-standard-log-file)

If you would like to include the request identifier in your standard log so you can match log events to a specific request, add the following to `config/logging.php`:

```
'tap' => [Brackets\AdvancedLogger\LogCustomizers\HashLogCustomizer::class],
```

to `daily` channel. The resulted code should looks like

```
    'channels' => [
        ...

        'daily' => [
            'driver' => 'daily',
            'path' => storage_path('logs/laravel.log'),
            'level' => 'debug',
            'days' => 14,
            'tap' => [Brackets\AdvancedLogger\LogCustomizers\HashLogCustomizer::class],
        ],

        ...
    ],
```

This log modifier can also be applied to other logging channels. However, it relies on an extended `LineFormatter`, so make sure the target channel is compatible with that formatter.

How to develop this project
---------------------------

[](#how-to-develop-this-project)

### Composer

[](#composer-1)

Update dependencies:

```
docker compose run -it --rm test composer update
```

Composer normalization:

```
docker compose run -it --rm php-qa composer normalize
```

### Run tests

[](#run-tests)

Run tests with pcov:

```
docker compose run -it --rm test ./vendor/bin/phpunit -d pcov.enabled=1
```

To regenerate snapshots use:

```
docker compose run -it --rm test ./vendor/bin/phpunit -d pcov.enabled=1 -d --update-snapshots
```

To switch between postgresql and mariadb change in `docker-compose.yml` DB\_CONNECTION environmental variable:

```
- DB_CONNECTION: pgsql
+ DB_CONNECTION: mysql

```

### Run code analysis tools (php-qa)

[](#run-code-analysis-tools-php-qa)

PHP compatibility:

```
docker compose run -it --rm php-qa phpcs --standard=.phpcs.compatibility.xml --cache=.phpcs.cache
```

Code style:

```
docker compose run -it --rm php-qa phpcs -s --colors --extensions=php
```

Fix style issues:

```
docker compose run -it --rm php-qa phpcbf -s --colors --extensions=php
```

Static analysis (phpstan):

```
docker compose run -it --rm php-qa phpstan analyse --configuration=phpstan.neon
```

Mess detector (phpmd):

```
docker compose run -it --rm php-qa phpmd ./config,./src,./tests ansi phpmd.xml --suffixes php --baseline-file phpmd.baseline.xml
```

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance88

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 59% 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 ~181 days

Recently: every ~107 days

Total

7

Last Release

66d ago

Major Versions

0.9.0 → 1.0.02024-04-05

v1.x-dev → 2.0.02026-04-28

PHP version history (3 changes)0.9.0PHP ^8.1

1.0.0PHP ^8.2

2.0.0PHP ^8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/7587c47435caa968be9a652630c6c0c91abacb43dfa001b02cbe5b892672cd7e?d=identicon)[dejwCake](/maintainers/dejwCake)

---

Top Contributors

[![dejwCake](https://avatars.githubusercontent.com/u/22255647?v=4)](https://github.com/dejwCake "dejwCake (23 commits)")[![RichardDominik](https://avatars.githubusercontent.com/u/13850339?v=4)](https://github.com/RichardDominik "RichardDominik (7 commits)")[![palypster](https://avatars.githubusercontent.com/u/2362237?v=4)](https://github.com/palypster "palypster (5 commits)")[![strstensky](https://avatars.githubusercontent.com/u/39539367?v=4)](https://github.com/strstensky "strstensky (4 commits)")

---

Tags

loggerrequest logger

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[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.

45444.2k1](/packages/pressbooks-pressbooks)[illuminate/log

The Illuminate Log package.

6225.3M623](/packages/illuminate-log)[naoray/laravel-github-monolog

Log driver to store logs as github issues

10823.1k](/packages/naoray-laravel-github-monolog)[onlime/laravel-http-client-global-logger

A global logger for the Laravel HTTP Client

2038.9k](/packages/onlime-laravel-http-client-global-logger)

PHPackages © 2026

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