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: SilverStripe\Logging\ErrorHandler:
class: SilverStripe\Logging\MonologErrorHandler class: SilverStripe\Logging\MonologErrorHandler
calls: calls:
pushDefaultLogger: [ pushHandler, [ '%$Psr\Log\LoggerInterface' ] ] pushDefaultLogger: [ pushLogger, [ '%$Psr\Log\LoggerInterface' ] ]
pushErrorHandler: [ pushHandler, [ '%$Psr\Log\LoggerInterface.errorhandler' ] ] pushErrorHandler: [ pushLogger, [ '%$Psr\Log\LoggerInterface.errorhandler' ] ]
# Default implementation for use as a standard logger. Up to developers to attach their own # Default implementation for use as a standard logger. Up to developers to attach their own
# handlers # handlers

View File

@ -163,7 +163,9 @@ SilverStripe\Core\Injector\Injector:
- "info" - "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 ### Disabling the default handler