06 Apr 2023
02:36 AM
- last edited on
02 May 2023
06:54 AM
by
educampver
Hi everyone,
We created a new Dynatrace app and added some console.log() and console.error() statements to see if your apps works correctly. The problem we figured out is that we can only see these kind of logs locally but when we deploy it to our tenant, we don't see any logs.
However, if we merge our branch to main, then it will be deployed automatically but here we can see the logs. So we assume that we as developers maybe don't have enough rights to see these logs which is very important during development process.
Is there any solution for that problem?
Solved! Go to Solution.
07 Apr 2023
12:30 AM
- last edited on
19 Apr 2023
01:02 AM
by
educampver
Hi Marcus, can you explain the problem in more detail? Where did you add console.logs? In react app or in the app functions?
07 Apr 2023
12:34 AM
- last edited on
19 Apr 2023
01:03 AM
by
educampver
I added them in the app function.
18 Apr 2023
05:54 AM
- last edited on
02 May 2023
06:31 AM
by
educampver
At the moment, you can't check the logs or throw custom errors for app functions. However, you can send the errors back using response. Take a look at https://developer.dynatrace.com/develop/functions/error-handling/#custom-error-reportingfor more detail.