Debug.unityLogger.logEnabled = false & Cloud Diagnostics

Hey!

To avoid getting any logs enabled in my release builds, I disable logs like this
Debug.unityLogger.logEnabled = false

Now my problem is that I can not log any events that are captured in Cloud Diagnostics.

How can I work around this? We have a lot of crashes in cloud diagnostics and we have no leads, with firebase we can leave specific bread crumbs

Hi @Apollo-Meijer , is there any particular reason that you’re specifically disabling logging in your release builds? Was it performance-related or some other reason?

We do it for performance reasons

We disable the logs because we noticed that It creates a lot of garbage and deep profiling usually just gets stuck when we have logs enabled.

When we monitor a development build with logs enabled the performance is terrible.
Do you have any suggestions on how we can monitor the impact of our logs with a release build?

Thank you for the additional information. In this case, you should still be able to make use of the metadata that’s included in the reports. Beyond that, I’m afraid I’m not sure if there are any other options while logging is disabled. I hope that this info helps and let me know if you have anymore questions.

so, if we have Debug.unityLogger.logEnabled = false; then any fatal/non fatal exceptions wont be reported to Unity CD. This is really disappointing