2017 © Pedro Peláez
 

library errorstream-yii2

Yii 2 Package for ErrorStream.com integration

image

errorstream/errorstream-yii2

Yii 2 Package for ErrorStream.com integration

  • Thursday, June 16, 2016
  • by kevinh448
  • Repository
  • 1 Watchers
  • 4 Stars
  • 340 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 3 Versions
  • 6 % Grown

The README.md

ErrorStream - Yii 2.0

Yii2 integration for Errorstream, (*1)

Installation Instructions

First, run the following command on the terminal to download and install the package, (*2)

composer require errorstream/errorstream-yii2

Next, register the client class in your web.php configuration file. You can find your API token and Project token on the project settings page inside of errorstream.com, (*3)

    'components' => [
        ...
        'errorstream' => [
            'class'             => 'ErrorStream\ErrorStreamClient\ErrorStreamClient',
            'api_token'         => 'YOUR_API_TOKEN', //Put your api token here
            'project_token'     => 'YOUR_PROJECT_TOKEN', //Put your project token here
            'active'            => true, //You might want to only activate this in production mode
        ]
        ...
    ]

Next, you want to edit the errorHandler setting in web.php configuration file. You'll want to place the ErrorStreamErrorHandler as a 'class' for your error handler, like this., (*4)

'components' => [
    ...
    'errorHandler' => [
        'errorAction' => 'site/error',
        'class' => 'ErrorStream\ErrorStream\ErrorStreamErrorHandler',
    ],
    ...
]

Finally, you want to edit the errorHandler setting in web.php configuration file. You'll want to place the ErrorStreamErrorHandler as a 'class' for your error handler, like this., (*5)

    'components' => [
        ...
        'log' => [
            ..
            'targets' => [
                ...
                [
                    'class' => 'ErrorStream\ErrorStream\ErrorStreamLogger',
                    'levels' => ['error', 'warning'], //Only send errors and warnings.
                    'logVars' => [], //Necessary so you don't submit every request to our server.
                ],
                ...
            ],
        ]
    ]

The Versions

16/06 2016

dev-master

9999999-dev https://www.errorstream.com

Yii 2 Package for ErrorStream.com integration

  Sources   Download

Apache-2.0

The Requires

 

logging yii2 errors yii errorstream

16/06 2016

1.1

1.1.0.0 https://www.errorstream.com

Yii 2 Package for ErrorStream.com integration

  Sources   Download

Apache-2.0

The Requires

 

logging yii2 errors yii errorstream

16/06 2016

1.0

1.0.0.0 https://www.errorstream.com

Yii 2 Package for ErrorStream.com integration

  Sources   Download

Apache-2.0

The Requires

 

logging yii2 errors yii errorstream