蒸馏厂 / 日志条目
1.3.0
2016-12-29 13:03 UTC
Requires
- php: >=5.6.4
- illuminate/log: ^5.3
- logentries/logentries: ^1.6
Requires (Dev)
- mockery/mockery: 0.9.*
- orchestra/testbench: 3.3.*
- phpunit/phpunit: ~4.5
This package is auto-updated.
Last update: 2024-09-23 07:06:17 UTC
README
Laravel 5 Logentries集成
此包覆盖了Log外观,以便将日志推送到LogEntries(https://logentries.com/)。
目录
安装
在composer.json中添加
"require": { "distilleries/logentries": "1.2.*", }
运行composer update
。
将服务提供者添加到config/app.php
'providers' => [ // ... Distilleries\Logentries\LogentriesServiceProvider::class, ]
如果您想导出配置
php artisan vendor:publish --provider="Distilleries\Logentries\LogentriesServiceProvider"
基本用法
首先,您需要在https://logentries.com/上创建一个账户。之后,只需在.env中添加一个token密钥即可
LOG_ENTRIES_TOKEN=c0d59aa1-********
此包覆盖了Log外观。基本上,如果您已经使用了Log,它将完全相同。如果您从未使用过Laravel中的Log,请参阅官方文档https://laravel.net.cn/docs/5.3/errors
\Log::info('Here');