Skip to Content
0
May 14, 2018 at 03:03 PM

Sentry logging implementation

215 Views

Hi ,

1 ) I added the dependency for external-dependecies.xml according to the operations on https://docs.sentry.io/clients/java/modules/log4j2/

alt text

2 ) After adding the related jars came under external libraries

alt text

3 ) added Java System Properties -Dsentry.dsn=https://e8e249ec5fe742f18b40d9a8651a4e87@sentry.io/1202345

4 ) and finally homepagecontroller add try catch block try { int a = 42 / 0; } catch (ArithmeticException e) { LOG.error(e.getMessage()); LOG.debug(e.getMessage()); }

5 ) but Sentry file doesnt send log to Sentry