I'm upgrading Crashlytics sdk from Fabric to Firebase for Unity3d project and trying to adapt api-changing for exceptions catching.
I need to construct Exception instance from next arguments:
void OnLogMessageReceived(String log, String stackTrace, LogType type)
Now I have
Crashlytics.Log(log);
Crashlytics.Log(stackTrace);
Exception exception = new Exception(type);
Crashlytics.LogException(exception);
Is it possible to send stackTrace
and get it pretty structured like it was in Fabric?