Server integration
Laravel Monitoring and Error Tracking
LoggerAI times every Laravel route, shows what each request waits on, groups your exceptions and links them to the user session that caused them. Install it, add your key and deploy.
What LoggerAI records
- Every route under its pattern (/orders/{order}): p50, p95, p99, Apdex, status codes, slow and failed requests
- Database queries, with a warning when a page runs one query per row
- Laravel HTTP client calls, Redis and mail
- Queue jobs and Artisan commands, timed like requests
- Exceptions grouped by cause, with the release they started in and how many users they hit
- Logs at warning and above
- CPU, memory, swap and disk every 30 seconds
- User sessions linked to the exact server request each click caused
Laravel 10, 11, 12 and 13 on PHP 8.1 or later. Works on a VPS, Laravel Forge, Docker, Laravel Vapor and shared hosting.
How to set it up
1. Install the package
The installer asks for your project's keys, adds them to .env and sends a test.
composer require loggerai/laravel php artisan loggerai:install2. Or set the keys yourself
LOGGERAI_KEY=sk_live_... # secret: server only LOGGERAI_PUBLIC_KEY=pk_live_... # public: records browser sessions LOGGERAI_RELEASE=${GIT_SHA} # optional3. Check the connection
Deploy, and data shows up within a minute.
php artisan loggerai:test
See every integration, or what you can do with the data in features.
Questions
- Does LoggerAI slow down Laravel requests?
- Nothing is sent while a user waits. On a VPS, Forge or Docker, records go to storage/loggerai and a batch leaves every few seconds, after a response has been sent.
- Does it work on shared hosting?
- Yes. On shared hosting or cPanel, schedule the loggerai:flush command so quiet sites don't wait for the next visitor. Laravel Vapor is detected and sends at the end of each request.
- Can it find N+1 queries in Laravel?
- Yes. LoggerAI warns when a page runs one query per row.
Try it on your own app
The Free plan is free for good, and needs no card.