# use sentry with servoy

**URL:** <https://forum.servoy.com/t/use-sentry-with-servoy/20963>\
**Category:** Questions\
**Created:** [March 7, 2023, 2:02pm UTC](https://forum.servoy.com/t/use-sentry-with-servoy/20963 "2023-03-07T14:02:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gerardimmeker](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/gerardimmeker/32/5221_2.png) [@gerardimmeker](https://forum.servoy.com/u/gerardimmeker)\
**Post date:** [March 7, 2023, 2:02pm UTC](https://forum.servoy.com/t/use-sentry-with-servoy/20963/1 "2023-03-07T14:02:32Z")

</div>

Hi all,  
Did any of you even have used [https://sentry.io/](https://sentry.io/) for logging?  
How did you implent it with servoy?

Regards,

Gerard Immeker

---

<div class="post-metadata">

**Author:** ![rgansevles](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rgansevles](https://forum.servoy.com/u/rgansevles)\
**Post date:** [March 17, 2023, 9:39am UTC](https://forum.servoy.com/t/use-sentry-with-servoy/20963/2 "2023-03-17T09:39:07Z")

</div>

Servoy uses log4j2 for logging.

Sentry seems to have an integration with log4j, see [https://sentry.io/for/log4j2/](https://sentry.io/for/log4j2/)

I guess if you add sentry-log4j2.jar to the war file, you could modify the log4j2.xml as shown in that page,

---

<div class="post-metadata">

**Author:** ![gerardimmeker](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/gerardimmeker/32/5221_2.png) [@gerardimmeker](https://forum.servoy.com/u/gerardimmeker)\
**Post date:** [March 20, 2023, 11:42am UTC](https://forum.servoy.com/t/use-sentry-with-servoy/20963/3 "2023-03-20T11:42:55Z")

</div>

Hi Rob,  
I’ve add the jar to the tomcat/lib folder.  
Added the appender to the xml file.  
When we deploy the solution, the error below occours.  
[Fatal Error] log4j2.xml:31:17: Open quote is expected for attribute “dsn” associated with an element type “Sentry”. │  
│ ERROR StatusLogger Error parsing /usr/local/tomcat/webapps/autoflex/WEB-INF/log4j2.xml

Any ideas?  
Regards,  
Gerard

---

<div class="post-metadata">

**Author:** ![ptalbot](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/ptalbot/32/4952_2.png) [@ptalbot](https://forum.servoy.com/u/ptalbot)\
**Post date:** [March 20, 2023, 3:18pm UTC](https://forum.servoy.com/t/use-sentry-with-servoy/20963/4 "2023-03-20T15:18:41Z")

</div>

As the error says, your log4j2.xml is probably malformed, there is a missing double quote somewhere.  
Check the quotes for the “dsn” attribute in the appender.
