post-thumb

How to get Crash logs for Unity 3D Game?

Hey, you may know how keeping Unity games stable can be a real challenge, right?

Especially when it comes to getting crash logs for those unexpected and critical issues. Sometimes, they’re a pain to reproduce or they only happen once in a while.

So, usually what we need is some kind of backend service that can help us identify the problems in the logs and fix those game-breaking crashes when they happen out of the blue.

You might come out with a question.

How to choose a cost-effective crash-log service for Unity?

Well, based on my experience, I’d totally recommend an awesome solution called Unity Cloud Diagnostics.

The best part is, you don’t even need to install or set up any additional SDK. It’s super convenient and reduces the risks of library conflicts in your game project.

In this article, we’ll walk through how to set up Unity Cloud Diagnostics and start getting crash logs in just a few minutes.

Moreover, we’ll also dig into integrating it with Slack, so you can receive real-time crash reports and boost your work productivity.

Table of Contents

  • What is Unity Cloud Dignatic?
  • How to set up Unity Cloud Diagnostics for Unity Game?
  • How to integrate Unity Cloud Dignatic with Slack?

What is Unity Cloud Diagnostics?

Cloud Diagnostics provides real-time error monitoring, crash reports, and alerts so that you can quickly fix the game-brack issues to make your game stable and players engage in your games.

Benefits

  • High Stability

You can identify critical issues in real-time alerts and crash reports. Then you can fix them as early as possible to ensure the high stability of your games.

  • Productivity

You can easily diagnose the cause of a problem in crash logs or stack traces so that you can save time in troubleshooting to keep productive.

  • Engagement

Players can keep engaged in your games with highly stable games.

Price:

This service is included in Unity Personal or Paid plans like Unity Plus, Pro, or Enterprise. Basically, there are no additional costs to save your money.

Included with Unity Personal

  • 25 crash & exception reports/day
  • 10 user-generated reports/day
  • 10 MB user-generated reports storage per day
  • 7 days data retention

Included with Unity Plus, Pro, and Enterprise

  • 10,000 crash and exception reports/day
  • 1,000 user-generated reports/day
  • 1 GB user-generated reports storage per day
  • 90 days data retention
  • Detailed crash and exception logs
  • Custom crash and exception metadata

Note:

  • For development, Unity Personal is good enough.
  • While for production, it’s recommended to use Plus or Pro because you will have more crash logs to diagnose the cause of critical issues.

How to set up Unity Cloud Diagnostics for Unity Game?

Before we get started, you need to install the Unity version above v2022.1 to support Unity Cloud Diagnostic.

Then you need

a Unity Account for Unity Personal, [Plus](https://prf.hn/click/camref:1101ljhvM/destination:https://store.unity.com/products/unity- plus), [Pro](https://prf.hn/click/camref:1101ljhvM/destination:https://store.unity.com/products/unity- pro), or Enterprise.

  • Open the Unity Editor and Sign in with your account.
  • Then go to Project Settings → Services → Cloud Diagnostics → Under Organizations, select or create an organization

Once you selected an organization, Click create Project ID or User an existing Unity project ID

When the setup is done, you can turn on Cloud Diagnostics as below

Then you can log in to Unity Dashboard with your Unity Account and Click LiveOps

Under Cloud Diagnostic, Click Crash and Exception Reporting

You can see below. Next, we can integrate with Slack to send real-time alerts for crash reports. You need to Click Add Integration

How to integrate Unity Cloud Dignatic with Slack?

Then Select Slack

Select the types of Crashes & Exceptions. You can select all depending on your needs. Then Click Next

Lastly, set up the workspace of Slack and type your channel name.

Test

Let’s do a crash test on the device to validate how it works.

Suppose we got an exception, we would get a message sent from Unity Services as shown below.

You can Click Exceptions Details and log in to Unity Dashboard.

Then you can see the detailed Stack Trace and Reports.

You can see this crash happened in

  • which line of codes by Stack Trace, Device, OS Version, CPU, and Unity version

Summary

In this tutorial, you have learned how simple it is to set up Unity Cloud Diagnostics in just a few steps, allowing you to effortlessly receive real- time crash logs through Slack.

Unity Cloud Diagnostics offers remarkable convenience in identifying and resolving potential bugs at the earliest stages, enabling you to maintain high-quality games that engage players effectively.

Moreover, I also discovered that Unity Cloud Diagnostics allows you to send custom Log Events, Screenshots, and User Reports based on specific conditions such as the stage or level of the game.

For more information, please refer to the details below.

Getting Started with Cloud Diagnostics

If you found this article helpful, please follow us on Facebook to get the latest tutorials in the future.

Thank you for reading!