diff --git a/_config/logging.yml b/_config/logging.yml index 2e17524ed..b729fd337 100644 --- a/_config/logging.yml +++ b/_config/logging.yml @@ -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 diff --git a/docs/en/02_Developer_Guides/07_Debugging/01_Error_Handling.md b/docs/en/02_Developer_Guides/07_Debugging/01_Error_Handling.md index a5a809b29..1eb8fa4c9 100644 --- a/docs/en/02_Developer_Guides/07_Debugging/01_Error_Handling.md +++ b/docs/en/02_Developer_Guides/07_Debugging/01_Error_Handling.md @@ -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