Silverstripe Version:
4.5.0
Question:
When using SS_Log
in Silverstripe 3 to email error details, it would, by default, include extra details about the request such as HTTP_USER_AGENT
and REMOTE_ADDR
. These were useful, e.g. to see if the error was triggered by a bot or a human.
In Silverstripe 4, I am using NativeMailerHandler
as detailed in the docs, but am struggling to work out how to add these extra details to the email error log, as they are not included by default. I’ve looked at the monolog docs, but can’t work out how this works in the context of Silverstripe.
Anyone able to help?