meloncut / laravel-ali-log
async ALi log service collection
dev-master
2019-11-08 10:12 UTC
Requires
- php: >=7.1.0
- illuminate/support: 5.5.*
- monolog/monolog: 1.*
Requires (Dev)
- phpunit/phpunit: ^4.0|^5.0
This package is auto-updated.
Last update: 2025-03-22 21:21:03 UTC
README
ali cloud log service for laravel framework
quick start
composer require meloncut/laravel-ali-log "dev-master"
provider register
add a row to config/app.php
'providers' => [
... //other providers
Meloncut\AliLog\AliCloudLogProvider::class
],
Log config set
add the following to config/logging.php
'alilog' => [
'endpoint' => 'xxxxxx', //Ali Log endpoint
'access_key_id' => 'xxxxx', //Ali AccessKeyId
'access_key' => 'xxxxx', //Ali AccessKey
'project' => 'xxxx', //Log project
'log_store' => 'xxxxx', //Log store
'topic' => 'xxxx' //not necessary
'resource' => 'xxxx' // not necessary
]
for details
Log level
use laravel Log Level
for details config/app.php 'log_level'