aleddev / dashlog
A request monitoring and logging package for Laravel
dev-main
2025-03-04 22:18 UTC
Requires
- php: ^8.1
- laravel/framework: ^10.0
Requires (Dev)
- orchestra/testbench: ^8.0
- phpunit/phpunit: ^10.0
Suggests
- elasticsearch/elasticsearch: Required for Elasticsearch storage driver (^8.0)
- mongodb/mongodb: Required for MongoDB storage driver (^1.12)
- predis/predis: Required for Redis storage driver (^2.0)
This package is not auto-updated.
Last update: 2025-05-13 23:16:39 UTC
README
A request monitoring and logging package for Laravel.
Installation
composer require aleddev/dashlog
Configuration
php artisan vendor:publish --provider="AledDev\DashLog\Infrastructure\Providers\DashLogServiceProvider"
Middleware
php artisan vendor:publish --provider="AledDev\DashLog\Infrastructure\Providers\DashLogServiceProvider"
Migrations
php artisan migrate
Usage
- Now you have a middleware that will log the request and response, you can use it in the routes that you want to monitor.
- To access the dashboard, you can go to
your-domain.com/dashlog
and see the requests that have been made. ( We recommend you to have a middleware for this route )
Recomendations
- Use the middleware in the routes that you want to monitor.
- Configure the routes that you want to monitor in the
config/dashlog.php
file. - If you want to make use of the AI analysis, you need to configure the
AIML_API_KEY
in the.env
file.
AI Analysis
The AI analysis is optional and is not enabled by default. If you want to make use of the AI analysis, you need to configure the AIML_API_KEY
in the .env
file.
We use the AIML API to analyze the request logs, because it offers a free plan for low requests, if you want to use another provider, you will need to implement your own.