PHP code example of bossit / yii2-sentry-logger
1. Go to this page and download the library: Download bossit/yii2-sentry-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/ */
bossit / yii2-sentry-logger example snippets
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => SentryTarget::class,
'dsn' => '_YOUR_KEY_',
'levels' => ['error', 'warning'],
'logVars' => [],
'except' => [
'yii\web\HttpException:404',
],
],
],
],