项目作者: martinbean

项目描述 :
A Papertrail log stack for Laravel 5.6 applications.
高级语言: PHP
项目地址: git://github.com/martinbean/laravel-papertrail.git
创建时间: 2018-04-24T15:03:25Z
项目社区:https://github.com/martinbean/laravel-papertrail

开源协议:MIT License

下载


Laravel Papertrail log channel

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

  1. Set two environment variables: PAPERTRAIL_HOST and PAPERTRAIL_PORT.
  2. Run composer require martinbean/laravel-papertrail
  3. Open config/logging.php and add the following channel:
  1. 'papertrail' => [
  2. 'driver' => 'papertrail',
  3. 'level' => 'debug', // Or other desired level
  4. ],

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.