Logs slow SilverStripe requests
PHP
Latest commit 6e064d9 Feb 21, 2014 @camspiers Docs support for floats
Permalink
Failed to load latest commit information.
_config Initial commit Feb 8, 2014
src
tests
.gitignore
.php_cs
.travis.yml
README.md
composer.json
composer.lock
phpunit.xml.dist

README.md

SilverStripe Slow Log

Build Status

Installation (with composer)

composer require camspiers/silverstripe-slowlog:dev-master

Usage

Provide a logger to the request filter service:

Injector:
  SlowLogRequestFilter:
    constructor:
      0: '%$Monolog'

Define a custom time

Any request >1s is deemed "slow" by default you can change this as follows:

Injector:
  SlowLogRequestFilter:
    constructor:
      0: '%$Monolog'
      1: 2