We’re using Adobe Experience Manager (AEM) and I was wanting to add Sentry logging to the Java environment. For those not in the know AEM is a Java app which uses Sling and OSGi for loading dependencies.
I’ll prefix this by saying that I am not really a Java guy (though I can stumble my way through). I’m wanting to add Sentry alerts to any Java errors/exceptions that are happening.
In AEM you can alter the settings by modifying the config for org.apache.sling.commons.log.LogManager.factory but I am unsure what I should be setting. I’ve got the Sentry Java client as a dependency of the overall project.
I want to have all log files processed by Sentry.
Is there anyone who has wired up Sentry with AEM?
Reading the documentation it seems that you need to set up Sentry as an appender to the logger, and then set some Environment variables to configure it. I’m not sure where I should be configuring this though.
Is anyone able to advise on the correct/best way to do this?