Download the PHP package pkeidel/laralog without Composer
On this page you can find all versions of the php package pkeidel/laralog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pkeidel/laralog
More information about pkeidel/laralog
Files in pkeidel/laralog
Package laralog
Short Description Logs a lot of informations like events, database queries, cache access, memory usage and a lot more
License MIT
Homepage https://github.com/pkeidel/laralog
Informations about the package laralog
pkeidel/laralog
This package is inspired by laravel-debugbar and 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
You can install the package via composer:
Add the middleware to your ./app/Http/Kernel.php:
Configuration
Add these values to your .env file:
Or get the config/laralog.php file and modify it there. For example to
Optional: Send request direct (not in terminate()
):
Log exceptions
Simply add this to app/Exceptions/Handler::report(Exception $exception)
:
Outputs
Elasticsearch
Create index template:
artisan vendor:publish --tag=es-template --provider="PKeidel\Laralog\LaralogServiceProvider"
artisan laralog:es:install
Example Kibana visualisations
Requests per route
License
The MIT License (MIT)
All versions of laralog with dependencies
ext-json Version *
ext-sockets Version *
guzzlehttp/guzzle Version ^6.5 || ^7.0