2017 © Pedro Peláez
 

cakephp-plugin cakephp-cw-log

CakePHP log in aws cloudwatch

image

awallef/cakephp-cw-log

CakePHP log in aws cloudwatch

  • Tuesday, August 1, 2017
  • by awallef
  • Repository
  • 1 Watchers
  • 2 Stars
  • 51 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 11 % Grown

The README.md

cakephp-cw-log plugin for CakePHP

This plugin allows you log your cakephp app in aws cloudwatch, (*1)

Installation

You can install this plugin into your CakePHP application using composer., (*2)

The recommended way to install composer packages is:, (*3)

composer require awallef/cakephp-cw-log

Log settings

Configure the engine in app.php like follow:, (*4)

...
'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...., (*5)

The Versions

01/08 2017

dev-master

9999999-dev

CakePHP log in aws cloudwatch

  Sources   Download

The Requires

 

The Development Requires

31/07 2017

3.4.0.0

3.4.0.0

CakePHP log in aws cloudwatch

  Sources   Download

The Requires

 

The Development Requires