Custom attaches for crashes and exceptions

Hey
Is there any ability to add custom attaches for automatic exception report?
Our project generates some log files. We need to get it if a player faced any exception, because it help us to see the history of the problem, so it will be much easier to investigate.
Now we need to use external service to upload these log files on exception. It will be great to have one service to rule them all.
Thanks

With User Reporting you can attach files along with a report. With the automatic exception and crash reports (i.e. Crashes & Exceptions), you cannot currently attach files along with a report. However, you can, if you are a Plus or Pro subscriber, see the log messages leading up to an exception or crash report. That feature is described here:

https://blogs.unity3d.com/2018/10/15/whats-new-in-performance-reporting/

Is that suitable to your needs? or are do you need more logging/attachment support?

Thank you for your reply,
No, 50 log messages is still not enought for our needs. We have log files 500-1500kb length, where we can save player’s activity for last ~90 minutes of active gameplay, or even last 2-3 game sessions. Also we have some external services integrated, they are also use this log, so even last 200 log messages will not be enought to investigate most of troubles a player faced.
Attachments support looks the best solution for us now

Depending on your needs, User Reporting might work. You can include a log of arbitrary length and attach files. However, User Reporting isn’t automatic. You would need to catch the exception yourself and fire off a user report. In addition, User Reports are not aggregated.

It would be very useful to attached a User supplied file with each crash report. Logs, history, events, etc. In our case we have a save after every turn. If we we’re able to attached a save file we’d have the last valid safe for each of our crashes. Very helpful in tracking down crashes.
We do use User Reports extensively but that doesn’t help us with tracking down hard to find crashes that show up in the Crash Reprot Pro users

Hi @MohawkGames , thank you for the suggestion. I’ve logged this feature request so that it can be reviewed when the new team has been ramped up on the service. Right now, the service is in maintenance mode so no new feature work is being handled at this time.

Hi, thank you for the thread !
It is very important and useful feature to attach a custom log file.
For quality and intime user support or bugs fixing.

Is there any way to capture the fact that a report about an exception has been fired off, and act on it? I tried editing the UserReportMonitor class, hoping it was involved, but it seems like it does nothing.

Where, in what code, is actually the exception-crash reporting done?

1 Like