定制 awallef/cakephp-cw-log 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

awallef/cakephp-cw-log

最新稳定版本:4.0.0.0

Composer 安装命令:

composer require awallef/cakephp-cw-log

包简介

CakePHP log in aws cloudwatch

README 文档

README

This plugin allows you log your cakephp app in aws cloudwatch

Installation

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require awallef/cakephp-cw-log

Log settings

Configure the engine in app.php like follow:

...
'Log' => [
    'debug' => [
		'className' => 'Awallef\CWL\Log\Engine\CloudwatchLog',
		'levels' => ['notice', 'info', 'debug'],

		// Cloudwatch
    'groupName' => 'ec2-instance-x',
    'streamName' => 'my-php-app-log-test',
    'retentionDays' => '14', // days...

    // aws
    'aws' => [
      'region' => 'eu-central-1',
      'version' => 'latest',
      'credentials' => [
        'key' => 'your AWS key',
        'secret' => 'your AWS secret',
      ]
    ]
    ],
    'error' => [
		'className' => 'Awallef\CWL\Log\Engine\CloudwatchLog',
		'levels' => ['warning', 'error', 'critical', 'alert', 'emergency'],

		// Cloudwatch
    'groupName' => 'ec2-instance-x',
    'streamName' => 'my-php-app-log-test',
    'retentionDays' => '14', // days...

    // aws
    'aws' => [
      'region' => 'eu-central-1',
      'version' => 'latest',
      'credentials' => [
        'key' => 'your AWS key',
        'secret' => 'your AWS secret',
      ]
    ]
    ],
],
...

more to come, like errors types as tags....

统计信息

  • 总下载量: 34.47k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2017-07-31