Installs: 77

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:cakephp-plugin

1.0.2 2025-05-31 08:56 UTC

This package is auto-updated.

Last update: 2025-05-31 13:11:12 UTC


README

Config

Config/core.php

    Configure::write('Sentry', [
        'dsn' => 'SENTRY_DSN',
        'options', [
            'environment' => 'SENTRY_ENVIRONMENT',
            'release' => 'SENTRY_RELEASE',
        ],
        'ignoredExceptions', [
            NotFoundException::class,
            MissingControllerException::class,
            MissingActionException::class,
        ]
    ]);
    App::uses('SentryErrorHandler', 'Sentry.Lib/Error');
    Configure::write('Error', [
        'handler' => 'SentryErrorHandler::handleError',
        'level' => E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED,
        'trace' => true,
    ]);
    Configure::write('Exception', [
        'handler' => 'SentryErrorHandler::handleException',
        'renderer' => 'ExceptionRenderer',
        'log' => true,
    ]);