PHPackages                             travoltron/laratrail - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. travoltron/laratrail

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

travoltron/laratrail
====================

A package to log Laravel apps to Papertrail

2165PHP

Since Jan 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/travoltron/laratrail)[ Packagist](https://packagist.org/packages/travoltron/laratrail)[ RSS](/packages/travoltron-laratrail/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

laratrail
=========

[](#laratrail)

[![Latest Version on Packagist](https://camo.githubusercontent.com/211eb53333c6a373ed7a7dbcf909932f4f1f44dc7d41463fa30a5e2a35981f10/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f747261766f6c74726f6e2f6c617261747261696c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/travoltron/laratrail)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/54b9194cce537547b2e18b2acaf4d6be9f3551f14e0aa5015a997ebee85e9253/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f747261766f6c74726f6e2f6c617261747261696c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/travoltron/laratrail)

Laravel has a brilliant handler for exceptions and reporting, and the Monolog implementation is second to none.

Now, we'll get it piping logs to [Papertrail!](https://papertrailapp.com/?thank=221c03)

Other implementations have you editing your rsyslog.conf file, but that's not always an option of you can't SSH into the server, plus, it turns on the firehose of things that aren't necessarily related to your app.

Installation
------------

[](#installation)

[![Instruction GIF](https://camo.githubusercontent.com/230c965b485f0eef592251ad775ff8bb280dbc89dcbf56c3738ff9b26643938b/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f336f4b4950795a6f6f303061356f524436552f67697068792e676966)](https://camo.githubusercontent.com/230c965b485f0eef592251ad775ff8bb280dbc89dcbf56c3738ff9b26643938b/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f336f4b4950795a6f6f303061356f524436552f67697068792e676966)

First, add the `Travoltron\Laratrail\LaratrailServiceProvider::class,` to `config/app.php` and you're all set.

Second, call `php artisan vendor:migrate` to publish the config file.

End of the gif, I highlighted a url that was in the format of `logsX.papertrailapp.com:XXXXX`

Finally, you'll need these to add to your .env file:

- `PAPERTRAIL_DOMAIN` to logsX.papertrailapp.com, replacing X with what returns when you add a log destination. Leave off the port and colon.
- `PAPERTRAIL_PORT` to the port of your log destination (that's the part after, but not including `:`).

Thats all.

For further instructions on logging see the [official documentation](https://laravel.com/docs/5.4/errors#logging)

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Ben Warburton](https://github.com/travoltron)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef96d87af28edb48b408c3c45dd8d371c297ab9e3bd575a542dd83628d38309b?d=identicon)[travoltron](/maintainers/travoltron)

---

Top Contributors

[![travoltron](https://avatars.githubusercontent.com/u/2647090?v=4)](https://github.com/travoltron "travoltron (3 commits)")[![Naoray](https://avatars.githubusercontent.com/u/10154100?v=4)](https://github.com/Naoray "Naoray (1 commits)")

### Embed Badge

![Health badge](/badges/travoltron-laratrail/health.svg)

```
[![Health](https://phpackages.com/badges/travoltron-laratrail/health.svg)](https://phpackages.com/packages/travoltron-laratrail)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B10.9k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1938.5M262](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2326.5M315](/packages/open-telemetry-sdk)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8676.7k](/packages/illuminated-console-logger)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
