Can't see crash logs

I'm developing a Mac OS application. I can see the following error message when I run the application.

"You do not have permission to open the application"

If the SIP is disable, the crash report is stored in "users\username\Library\Logs\DiagnosticReports". But if the SIP is enable, I cannot see the log in same folder. Do you know where the log is stored?

Mac OS 11.2.2

Can't see crash logs
 
 
Q