dev-master
9999999-dev https://github.com/travoltron/laratrailA package to log Laravel apps to Papertrail
MIT
The Requires
- php ~5.6|~7.0
The Development Requires
laravel remote logs papertrail travoltron laratrail
A package to log Laravel apps to Papertrail
![Software License][ico-license]
, (*1)
Laravel has a brilliant handler for exceptions and reporting, and the Monolog implementation is second to none., (*2)
Now, we'll get it piping logs to Papertrail!, (*3)
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., (*4)
, (*5)
First, add the Travoltron\Laratrail\LaratrailServiceProvider::class,
to config/app.php
and you're all set., (*6)
Second, call php artisan vendor:migrate
to publish the config file., (*7)
End of the gif, I highlighted a url that was in the format of logsX.papertrailapp.com:XXXXX
, (*8)
Finally, you'll need these to add to your .env file:, (*9)
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., (*10)
For further instructions on logging see the official documentation, (*11)
Please see CHANGELOG for more information on what has changed recently., (*12)
Please see CONTRIBUTING and CONDUCT for details., (*13)
If you discover any security related issues, please email ben@travoltron.com instead of using the issue tracker., (*14)
The MIT License (MIT). Please see License File for more information., (*15)
A package to log Laravel apps to Papertrail
MIT
laravel remote logs papertrail travoltron laratrail