alilog/yii2-ali-log

push Syslog to aliyun

Installs: 52

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 3

Forks: 0

Type:yii2-extension

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

This package is not auto-updated.

Last update: 2025-07-14 18:01:57 UTC


README

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

Configuration

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


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