PHP code example of ctala / yii2-sentry2-logger
1. Go to this page and download the library: Download ctala/yii2-sentry2-logger library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ctala / yii2-sentry2-logger example snippets
'log' => [
'targets' => [
[
'class' => 'ctala\Sentry2\SentryTarget',
'levels' => ['error'],
'dsn' => "YOURDSN",
'environment' => "prod"
],
],
],
php composer.phar