2015-07-24 00:53:41 +02:00
|
|
|
---
|
|
|
|
Name: logging
|
|
|
|
---
|
2016-08-19 00:51:35 +02:00
|
|
|
SilverStripe\Core\Injector\Injector:
|
2015-07-24 00:53:41 +02:00
|
|
|
ErrorHandler:
|
2016-08-19 00:51:35 +02:00
|
|
|
class: SilverStripe\Logging\MonologErrorHandler
|
2015-07-24 00:53:41 +02:00
|
|
|
properties:
|
2017-03-09 23:20:58 +01:00
|
|
|
Logger: %$Psr\Log\LoggerInterface
|
|
|
|
Psr\Log\LoggerInterface:
|
2015-07-24 00:53:41 +02:00
|
|
|
type: singleton
|
|
|
|
class: Monolog\Logger
|
|
|
|
constructor:
|
|
|
|
- "error-log"
|
|
|
|
calls:
|
|
|
|
DisplayErrorHandler: [ pushHandler, [ %$DisplayErrorHandler ] ]
|
|
|
|
|
|
|
|
---
|
|
|
|
Name: dev-logging
|
|
|
|
Only:
|
|
|
|
environment: dev
|
|
|
|
---
|
2016-08-19 00:51:35 +02:00
|
|
|
SilverStripe\Core\Injector\Injector:
|
2015-07-24 00:53:41 +02:00
|
|
|
DisplayErrorHandler:
|
2016-08-19 00:51:35 +02:00
|
|
|
class: SilverStripe\Logging\HTTPOutputHandler
|
2015-07-24 00:53:41 +02:00
|
|
|
constructor:
|
|
|
|
- "notice"
|
|
|
|
properties:
|
2016-08-19 00:51:35 +02:00
|
|
|
Formatter: %$SilverStripe\Logging\DetailedErrorFormatter
|
2015-07-24 00:53:41 +02:00
|
|
|
---
|
|
|
|
Name: live-logging
|
|
|
|
Except:
|
|
|
|
environment: dev
|
|
|
|
---
|
2016-08-19 00:51:35 +02:00
|
|
|
SilverStripe\Core\Injector\Injector:
|
2015-07-24 00:53:41 +02:00
|
|
|
DisplayErrorHandler:
|
2016-08-19 00:51:35 +02:00
|
|
|
class: SilverStripe\Logging\HTTPOutputHandler
|
2015-07-24 00:53:41 +02:00
|
|
|
constructor:
|
|
|
|
- "error"
|
|
|
|
properties:
|
2017-04-24 06:38:13 +02:00
|
|
|
Formatter: %$SilverStripe\Logging\DebugViewFriendlyErrorFormatter
|
|
|
|
CLIFormatter: %$SilverStripe\Logging\DetailedErrorFormatter
|
|
|
|
SilverStripe\Logging\DebugViewFriendlyErrorFormatter:
|
2016-08-19 00:51:35 +02:00
|
|
|
class: SilverStripe\Logging\DebugViewFriendlyErrorFormatter
|
2015-07-24 00:53:41 +02:00
|
|
|
properties:
|
|
|
|
Title: "There has been an error"
|
|
|
|
Body: "The website server has not been able to respond to your request"
|