heyday / silverstripe-backstop
Helps log non-200 errors
Installs: 43 023
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 27
Forks: 2
Type:silverstripe-module
Requires
- composer/installers: ~1.0
- monolog/monolog: ^1.7
Requires (Dev)
- phpunit/phpunit: ~3.7.0
- silverstripe/framework: ~3.1.0
- symfony/class-loader: ~2.3
This package is auto-updated.
Last update: 2024-10-29 04:19:52 UTC
README
Logging for responses with status codes 400-500
Installation (with composer)
$ composer require heyday/silverstripe-backstop:dev-master
Usage
-
Create a config file in your
mysite
, e.g. "mysite/_config/logging.yml" -
Set up a
PSR-3
logger service and add to theBackstop
constructorInjector: Monolog: class: Monolog\Logger constructor: 0: App 1: - '%$StreamHandler' StreamHandler: class: Monolog\Handler\StreamHandler constructor: 0: '../../error.log' Backstop: class: Heyday\Backstop\Backstop constructor: 0: '%$Monolog'
Unit testing
$ composer install --dev
$ vendor/bin/phpunit
##License
SilverStripe Backstop is released under the MIT license