Skip to content

Conversation

@limbonaut
Copy link
Collaborator

This PR adds an option to print logs added with SentrySDK.logger API to Godot console (and as such to stdout/err). And this option is enabled by default.

While testing Logs API in my project, I noticed that I very much lacked logs being printed to the Godot's console. This is not a problem when you use Godot's standard logging functions such as print() and printerr. Only when using our dedicated API like so:

SentrySDK.logger.info("Hello %s", ["world"])

So it makes the most sense to me if the logs from our API would also appear in the console in addition to being sent to Sentry. The option is added in case this behavior is not desired on particular projects.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 12, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 02a73fe

@JoshuaMoelans
Copy link
Member

JoshuaMoelans commented Dec 15, 2025

Could we reuse the debug option for this, as it seems like doing it like this is an expected feature of structured logs?

(pretty sure we still need this in Native too 😅 )

@limbonaut
Copy link
Collaborator Author

limbonaut commented Dec 15, 2025

@JoshuaMoelans Sure, we can do that. But that means we’ll be mixing log output with Sentry’s debug output. And those aren’t the same things. If someone wants to see log entries in the Godot console (90% need this - should be default), they might not necessarily want all the other internal details of Sentry operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants