taildev/laravel

This package is abandoned and no longer maintained. No replacement package was suggested.

Laravel integration for tail.dev

v0.2.3 2021-01-07 05:04 UTC

This package is auto-updated.

Last update: 2021-02-11 19:15:04 UTC


README

PHP tests

laravel-logo.svg

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