CWP provides the Graylog service for developers to record errors in. cwp-core previously in the 1.x line automatically logged messages into Graylog, but the 2.x line seems to have lost this.
Here's what I added to a project to bring this back, using the same SilverStripe_log facility that I believe was used previously.
CWP provides the Graylog service for developers to record errors in.
cwp-core
previously in the 1.x line automatically logged messages into Graylog, but the2.x
line seems to have lost this.Here's what I added to a project to bring this back, using the same
SilverStripe_log
facility that I believe was used previously.In a new file, e.g.
mysite/_config/logging.yml
:This is enough to push log messages through to CWP's Graylog system.