PHPackages                             pkeidel/laralog - 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. pkeidel/laralog

AbandonedArchivedLibrary

pkeidel/laralog
===============

Logs a lot of informations like events, database queries, cache access, memory usage and a lot more

0.5.2(4y ago)055MITPHPPHP ^7.4 | ^8.0

Since Aug 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/PKeidel/laralog)[ Packagist](https://packagist.org/packages/pkeidel/laralog)[ Docs](https://github.com/pkeidel/laralog)[ RSS](/packages/pkeidel-laralog/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)Dependencies (3)Versions (10)Used By (0)

pkeidel/laralog
===============

[](#pkeidellaralog)

[![Latest Version on Packagist](https://camo.githubusercontent.com/49dbc291bf55360606c8b616610a974e201646a7317323931a9ee5306facb5cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706b656964656c2f6c6172616c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pkeidel/laralog)[![Total Downloads](https://camo.githubusercontent.com/6e19c38375e9e05494ce21f622bee13dc2ccf64d3bb711e3f0ebbe170b60a761/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706b656964656c2f6c6172616c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pkeidel/laralog)

This package is inspired by [laravel-debugbar](https://github.com/barryvdh/laravel-debugbar) and [clockwork](https://github.com/itsgoingd/clockwork)but logs the data to an elasticsearch server. It registers a middleware and the HTTP request to elasticsearch is send within `terminate()` by default to not slow down your page.

It logs: response data (like response time and http status code), database queries, most fired events, custom data.

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

[](#installation)

You can install the package via composer:

```
composer require pkeidel/laralog
```

Add the middleware to your ./app/Http/Kernel.php:

```
\PKeidel\Laralog\Middleware\Logging::class,
```

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

[](#configuration)

Add these values to your .env file:

```
LARALOG_ENABLED=true
LARALOG_ES_HOST=https://es01.example.com
LARALOG_ES_INDEX=myindex
LARALOG_ES_USERNAME=abcdefghi
LARALOG_ES_PASSWORD=!top5scr3t!
LARALOG_ES_VERIFYSSL=true
LARALOG_ES_PIPELINE=ipgeo
```

Or get the config/laralog.php file and modify it there. For example to

```
artisan vendor:publish --tag=config --provider="PKeidel\Laralog\LaralogServiceProvider"
```

Optional: Send request direct (not in `terminate()`):

```
config/laralog.php: 'sendlater' => false,

```

Log exceptions
--------------

[](#log-exceptions)

Simply add this to `app/Exceptions/Handler::report(Exception $exception)`:

```
$pklaralog = resolve('pklaralog');

$pklaralog->get('errors')->push([
    'type'      => 'error',
    'time'      => round(microtime(true), 3),
    'exception' => get_class($exception),
    'message'   => $exception->getMessage(),
    'file'      => $exception->getFile(),
    'line'      => $exception->getLine(),
    'route'     => optional(request()->route())->uri() ?? 'unknown',
]);
```

Outputs
-------

[](#outputs)

### Elasticsearch

[](#elasticsearch)

Create index template:

```
artisan vendor:publish --tag=es-template --provider="PKeidel\Laralog\LaralogServiceProvider"
artisan laralog:es:install

```

Example Kibana visualisations
-----------------------------

[](#example-kibana-visualisations)

### Requests per route

[](#requests-per-route)

[![01_requests_per_route](img/01_requests_per_route.png)](img/01_requests_per_route.png)

License
-------

[](#license)

The MIT License (MIT)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

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

Every ~68 days

Recently: every ~41 days

Total

9

Last Release

1559d ago

PHP version history (4 changes)0.0.1PHP ^7.3

0.2.0PHP &gt;=7.3

0.2.1PHP &gt;=7.4

0.5.0PHP ^7.4 | ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/748433d40403823c295ae1e046e5b5f87f1557f49619acbeffc7260a0db62cd7?d=identicon)[PKeidel](/maintainers/PKeidel)

---

Top Contributors

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

---

Tags

laravellaralogpkeidel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pkeidel-laralog/health.svg)

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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