martinbean / laravel-papertrail
A Papertrail log channel for Laravel applications.
Installs: 11 863
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Open Issues: 0
Requires
- illuminate/log: ~5.6
- illuminate/support: ~5.6
- monolog/monolog: ~1.12
This package is not auto-updated.
Last update: 2020-01-19 13:04:19 UTC
README
Requirements
- Your application must be running Laravel 5.6.
Note: Laravel added a native Papertrail logging channel in version 5.7, so if you are running Laravel 5.7+ this package is unnecessary.
Installation
- Set two environment variables:
PAPERTRAIL_HOST
andPAPERTRAIL_PORT
. - Run
composer require martinbean/laravel-papertrail
- Open config/logging.php and add the following channel:
'papertrail' => [ 'driver' => 'papertrail', 'level' => 'debug', // Or other desired level ],
Once configured, you can add papertrail
to the stack
channel (if you’re
using it) and any logs will be pushed to your Papertrail account.
Note: The PAPERTRAIL_HOST
environment variable should be the full
Papertrail hostname, i.e. logs0.papertrailapp.com.
Issues
Open a new Issue on the GitHub repository.
License
Licensed under the MIT License.