Replies: 2 comments 4 replies
-
I am having trouble setting up a plugin for that. i don't know if i am doing something wrong. But im unable to retrieve Log records from the Logger.Triggerable interface. And for the record, the documentation for the plugin into the "Readme" is outdated. |
Beta Was this translation helpful? Give feedback.
-
@fentes I like the idea of reusing/extending the user of Let me know your thoughts on this approach! |
Beta Was this translation helpful? Give feedback.
-
Hey Jongpie,
we are logging quite often and the logs are very helpful at debugging stuff. The issue we are facing is, that we need to look into the Logs/Dashboard in order to see that there was an error.
For many other issues like flow errors or Apex exceptions we are getting an email to a shared email inbox and then someone of the team investigates into that. So we are quite good if something really breaks, but there can also be some things which are business wise wrong but executed successful. We would see it if, we look into the logs, but pulling is not as reliable than pushing 😉.
To solve this gap, I want to send an email to the team whenever a Log was saved which contains an error. I saw that you already created a class called LoggerEmailSender to send an email if something within the framework crashed. I understood the documentation that its purpose is only for crashes. Can we maybe reuse the class for sending additional emails?
Wanted to ask about that before I write a custom trigger to send emails by myself.
Beta Was this translation helpful? Give feedback.
All reactions