FIX Rename pushHandler to pushLogger

This commit is contained in:
Robbie Averill 2018-07-04 12:11:56 +12:00
parent 1faf59fc54
commit 18293f7afe
2 changed files with 5 additions and 3 deletions

View File

@ -13,8 +13,8 @@ SilverStripe\Core\Injector\Injector:
SilverStripe\Logging\ErrorHandler:
class: SilverStripe\Logging\MonologErrorHandler
calls:
pushDefaultLogger: [ pushHandler, [ '%$Psr\Log\LoggerInterface' ] ]
pushErrorHandler: [ pushHandler, [ '%$Psr\Log\LoggerInterface.errorhandler' ] ]
pushDefaultLogger: [ pushLogger, [ '%$Psr\Log\LoggerInterface' ] ]
pushErrorHandler: [ pushLogger, [ '%$Psr\Log\LoggerInterface.errorhandler' ] ]
# Default implementation for use as a standard logger. Up to developers to attach their own
# handlers

View File

@ -163,7 +163,9 @@ SilverStripe\Core\Injector\Injector:
- "info"
```
The log file will be relative to the framework/ path, so "../silverstripe.log" will create a file in your project root.
The log file will be relative to the vendor/ path, so "../silverstripe.log" will create a file in your project root.
The `info` argument provides the minimum level to start logging at.
### Disabling the default handler