camspiers / silverstripe-slowlog
Logs slow SilverStripe requests
Installs: 1 549
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 4
Forks: 2
Open Issues: 4
Type:silverstripe-module
Requires
- psr/log: ~1.0
Requires (Dev)
- phpunit/phpunit: ~3.7
- silverstripe/framework: ~3.1
This package is auto-updated.
Last update: 2024-11-19 14:35:56 UTC
README
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