use sentry with servoy

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

use sentry with servoy

Postby gerardimmeker » Tue Mar 07, 2023 4:02 pm

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

Regards,

Gerard Immeker
gerardimmeker
 
Posts: 16
Joined: Tue Sep 27, 2011 4:11 pm

Re: use sentry with servoy

Postby rgansevles » Fri Mar 17, 2023 11:39 am

Servoy uses log4j2 for logging.

Sentry seems to have an integration with log4j, see 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,
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1929
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: use sentry with servoy

Postby gerardimmeker » Mon Mar 20, 2023 1:42 pm

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
gerardimmeker
 
Posts: 16
Joined: Tue Sep 27, 2011 4:11 pm

Re: use sentry with servoy

Postby ptalbot » Mon Mar 20, 2023 5:18 pm

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 <Sentry> appender.
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1659
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 5 guests