alilog/yii2-ali-log

将Syslog推送到阿里云

安装: 49

依赖: 0

建议者: 0

安全: 0

星星: 6

关注者: 4

分支: 0

类型:yii2-extension

v1.0 2017-01-06 09:10 UTC

This package is not auto-updated.

Last update: 2024-09-23 13:59:59 UTC


README

将yii日志收集到阿里云日志服务

配置

打开config/web.php或main.php,配置如下


return [
    //....
    'components' => [
        'log' => [
            'targets' => [
                'class' => 'wsy\log\AliLogTarget',
                'endpoint' =>'节点',
                'accessKeyId' => '阿里云访问秘钥AccessKeyId',
                'accessKey' => '阿里云访问秘钥AccessKeySecret',
                'project' => '项目名称',
                'logstore' => '日志库名称',
            ]
        ]
    ]
];