Search Unity

Custom attaches for crashes and exceptions

Discussion in 'Unity Cloud Diagnostics' started by iron_klg, Apr 23, 2019.

  1. iron_klg

    iron_klg

    Joined:
    Mar 11, 2019
    Posts:
    3
    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
     
  2. johng_unity

    johng_unity

    Unity Technologies

    Joined:
    Nov 5, 2015
    Posts:
    158
    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?
     
  3. iron_klg

    iron_klg

    Joined:
    Mar 11, 2019
    Posts:
    3
    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
     
  4. bretth_unity

    bretth_unity

    Unity Technologies

    Joined:
    Dec 1, 2016
    Posts:
    35
    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.