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:
|
|
|
|
Logger: %$Logger
|
|
|
|
Logger:
|
|
|
|
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:
|
|
|
|
Formatter: %$FriendlyErrorFormatter
|
|
|
|
FriendlyErrorFormatter:
|
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"
|