cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Missing logs for own Dynatrace app

MarkusHobisch
Dynatrace Participant
Dynatrace Participant

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?

3 REPLIES 3

imsingh
Dynatrace Participant
Dynatrace Participant

Hi Marcus, can you explain the problem in more detail? Where did you add console.logs? In react app or in the app functions? 

MarkusHobisch
Dynatrace Participant
Dynatrace Participant

I added them in the app function.

imsingh
Dynatrace Participant
Dynatrace Participant

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.