meloncut/laravel-ali-log

异步阿里日志服务集合

dev-master 2019-11-08 10:12 UTC

This package is auto-updated.

Last update: 2024-09-22 20:08:44 UTC


README

为Laravel框架提供的阿里云日志服务

快速开始

composer require meloncut/laravel-ali-log "dev-master"

提供者注册

add a row to config/app.php
'providers' => [
        ... //other providers
        Meloncut\AliLog\AliCloudLogProvider::class
],

日志配置设置

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

阿里云日志文档

日志级别

use laravel Log Level

for details config/app.php 'log_level'