Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

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:
    38
    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.
     
  5. MohawkGames

    MohawkGames

    Joined:
    Jul 23, 2018
    Posts:
    1
    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
     
  6. Ryan-Unity

    Ryan-Unity

    Unity Technologies

    Joined:
    Mar 23, 2016
    Posts:
    1,993
    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.
     
  7. NakoRinn

    NakoRinn

    Joined:
    Jul 17, 2018
    Posts:
    15
    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.
     
  8. Zarkow

    Zarkow

    Joined:
    Jul 27, 2015
    Posts:
    92
    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?
     
    kmowers likes this.