I have custom errors logging successfully, but there is an example of a failure error that I'd like to be notified by email, and can add this email trigger in my custom method.
Is there a way to trigger an email, either via the Log function, or as a custom method? I'm on 8.18.5 at this moment.
Trigger an email notification via code
I have custom errors logging successfully, but there is an example of a failure error that I'd like to be notified by email, and can add this email trigger in my custom method.
Is there a way to trigger an email, either via the Log function, or as a custom method? I'm on 8.18.5 at this moment.
Hi Jason,
You could install the serilog e-mail sink : https://github.com/serilog/serilog-sinks-email
And configure that with log level Error. That way all the errors will be e-mailed.
See the docs for configuration : https://our.umbraco.com/documentation/Reference/Configuration-for-Umbraco-7-and-8/Serilog/
Dave
Perfect. Thanks!
is working on a reply...