Issue
I want to view my Sentry logs and I do not know where to find them.
Applies To
- All customers
Symptoms
- I'm using an SDK with the basic option debug that I've enabled in my code base file where Sentry is initialized.
- I'm having issues setting up my SDK and I am trying to troubleshoot why events are not being sent to Sentry.
Resolution
These Sentry logs are not available in the Sentry UI. Sentry will print logs to the console or log files (depending on your environment setup) whenever it sends events or encounters issues. These logs will specifically be detailed if debug option is available for SDK and has been set to true in the Sentry init function. You can find all the general options of where these logs are available listed below:
- Console/Standard Output: This is the most common place for debug logs when running applications from a terminal or command prompt.
- Log Files: Many applications are configured to write logs to files. The location of these files varies by application and configuration (eg, log/development.log for Rails, specific directories for log frameworks in Java or .NET).
- Browser Console: For browser-based JavaScript, logs will appear in the browser's Developer Tools console.
- Process Manager Logs: If using a process manager (eg, PM2 for Node.JS, Docker logs), the logs will be available through the manager's log command or interface.
By checking these locations, you should be able to find the Sentry debug logs and review the detailed information they provide.