Logging & Anonymous Bug Reports #1024
Replies: 3 comments 3 replies
-
Good ideas! I think using sentry could be really useful for catching crashes. I'm wondering, what benefits does SwiftyBeaver has compared to Apples Logger + Console.app? I've used those in the past (also for sending bug reports), and at first sight it seems to offer similar functionality compared to SwiftyBeaver (except for colors? But console can filter on categories). |
Beta Was this translation helpful? Give feedback.
-
I'm all for this. I've no experience in the use of logging, on Apple platforms and Swift, so I don't have any critique or objections against the current suggested options. I think it would be a good idea that when an error occurs, and it's sent to Sentry for example, that the users knows that we have received the error. So then they don't have to file an issue about it. |
Beta Was this translation helpful? Give feedback.
-
Yeah I have not used logging like this on any Apple platforms but I do agree that implementing something like this would help out. Would also let us see errors that maybe isn't causing the app to crash but still an error that needs to be addressed. If these are built into the app, can a user access these logs to dump them to us if say they dont get uploaded for us to view in the cloud? |
Beta Was this translation helpful? Give feedback.
-
Since CodeEdit now has a pre-release live, it would be helpful to integrate a logging system for logging to the system console and/or a log file on disk that a user can append to a bug report.
In addition we could also integrate anonymous bug reporting which will log crashes and other fatal errors and give maintainers an insight on where issues occur regularly.
Proposal
Two services I have have in mind and have worked on extensively in the past are
They work really nicely together and I haven't had any issues at all. Sentry also allows uploading debug symbols to symbolicate stack traces which can also be done automatically on CI using their CLI.
SwiftyBeaver
is extensible in a way that you can easily format how a message gets logged, what destination it gets logged to and even add custom destinations like e.g.Sentry
.Your Opinion
The reason for writing this is that I want your opinion on this and to find the best solution possible. I think we should implement such mechanisms to get a hold of bugs that regularly occur and focus our attention on them.
Further I would like to know of any alternative frameworks/solutions we should consider. Please keep in mind that we should honor our user's privacy and that the tools in question need to do so too. Especially important for GDPR compliance, etc…
Other Frameworks to consider
Beta Was this translation helpful? Give feedback.
All reactions