taildev / laravel
Laravel integration for tail.dev
Requires
- php: ^7.2
- guzzlehttp/guzzle: 6.*||7.*
- guzzlehttp/psr7: ^1.6
- illuminate/contracts: 5.*||6.*||7.*||8.*
- laravel/framework: 5.*||6.*||7.*||8.*
- taildev/php: ~0.2.2
Requires (Dev)
- orchestra/testbench: ^5.1
- phpunit/phpunit: ^7.0||^8.0
- squizlabs/php_codesniffer: 3.*
README
The Laravel PHP integration for tail.dev provides zero-configuration application performance monitoring (APM), exceptions, and logging.
Docs
See full documentation at tail.dev/documentation/laravel/get-started
Quickstart
Install the taildev/laravel
package using Composer
composer require taildev/laravel
Set your auth token in the .env
file
TAIL_AGENT_TOKEN=your-auth-token
By default Laravel automatically registers service providers. If you have this turned off be sure to add the tail.dev service provider to your providers
array in config/app.php
'providers' => [ // ..., Tail\Laravel\TailServiceProvider::class, ]
APM tracing will work out of the box!
Logs
To setup logs, add a new channel to config/logging.php
'channels' => [ 'tail' => [ 'driver' => 'monolog', 'handler' => Tail\Logs\TailMonologHandler::class, ], ],
Next, set LOG_CHANNEL=tail
in your .env
file.
Logs will now be forwarded to tail.dev
More
For full documentation see tail.dev/documentation/laravel/get-started