Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Crash Unity SDK... Log & Crash Search. - Unity3D v4.0 ios - An Intel-based Mac - Xcode 6.0 or later TOAST Document Unity SDK. [DOCUMENTS] > [Download] > [Analytics > Log & Crash Search] > [Unity SDK] toast-logncrash-ios-unity-sdk.unitypackage Import. Assets > LogNCrash > Sample > SampleScene.,,. ios Unity #import <LogNCrashSDK/LogNCrashSDK.h>. 1. LogNCrashSettings Unity LogNCrash> Edit Settings LogNCrashSettings. LogNCrashSettings AssetDatabase SDK. Appkey:
URL:, https://api-logncrash.cloud.toast.com. Version: Send Warning: Unity Warning Send Error: Unity Error Send Debug Warning: Unity Debug Warning Send Debug Error: Unity Debug Error PLCrashreporter Enable: PLCrashrepoter Native Crash. Native Crash. LogNCrashSettings LogNCrash Initialize LogNCrashSettings. using Toast.LogNCrash; namespace Toast.LogNCrash public class SampleScript : MonoBehaviour void Start () LogNCrash.Initialize (); 2. Script LogNCrash.Initialize.,,,, PLCrashreporter Enable, Send Thread Lock. using Toast.LogNCrash; namespace Toast.LogNCrash public class SampleScript : MonoBehaviour void Start () LogNCrash.Initialize ("https://api-logncrash.cloud.toast.com", "appkey", "1.0.0", 80, true, true); LogNCrash.StartSendThread (); Appkey: URL:, http, https Version: Port: 80, 443 PLCrashreporter Enable: PLCrashrepoter.
SendThreadLock: true StartSendThread,. Native Crash ThreadLock. API public static void AddCustomField(string key, string val) public static void RemoveCustomField(string key) public static void RemoveAllCustomFields() Parameters key: string [in] custom field key, custom key A~Z, a~z, 0~9, - _. value: string Note [in] custom field keyword SDK. projectname projectversion host body loglevel userid Platform DmpData Unity3D Locale CountryCode SessionID ExceptionType NeloSDK NetworkType DeviceModel DeviceID @logtype custom filed NULL, SDKs server. Host public static SetEnableHost(bool flag)
- true : ip address host. - false: ip address. public static void SetLogSource(string value) public static string GetLogSource(). public static void SetLogType(string value) public static string GetLogType(). LEVEL Unity SDK Default FATAL. Error, Warning (,, ). Send Error: ERROR. Send Warning: WARN. Send Debug Error: ERROR. Send Debug Warning: WARN. API - html > index.html. //send info log message public static void Info(string strmsg) //send debug log message public static void Debug(string strmsg) //send warn log message public static void Warn(string strmsg) //send fatal log message public static void Fatal(string strmsg) //send error log message public static void Error(string strmsg)
Parameters strmsg: string [in] log Handled Exception //send Handled info log message public static void Info(string strmsg, Exception e) //send Handled debug log message public static void Debug(string strmsg, Exception e) //send Handled warn log message public static void Warn(string strmsg, Exception e) //send Handled fatal log message public static void Fatal(string strmsg, Exception e) //send Handled error log message public static void Error(string strmsg, Exception e) try // Exception code catch(exception e) LogNCrash.Info("handled exception message", e) try&catch Exception. public void Crash_Send_Complete_Callback(string message) Debug.Log("Crash_Send_Complete_Callback : " + message); void Start() LogNCrashCallBack.ExceptionDelegate += Crash_Send_Complete_Callback; ExceptionDelegate Unity CSharp Crash. Crash. public static void SetUserId(string userid) public static string GetUserID()
. Parameter userid: string [in] user id 2.4.0 SDK.. body loglevel. stacktrace condition.,. public static void SetDeduplicate(bool flag) true :(Default ) false: ios build 1.File->Build Settings.
ios Platform Player Settings.
Target ios Version, Simulator SDK Version Simulator SDK, device Device SDK Build settings Build. 2.Build Save Unity Xcode project.
3. Xcode project Xcode. ios ATS(App transport Security)
ATS ios9,os X 10.11 https https/http, Log & Crash Search http info.plist. https://developer.apple.com/library/ios/releasenotes/general/whatsnewinios/articles/ios9. html 1. http <key> NSAppTransportSecurity </key> <dict> <key> NSAllowsArbitraryLoads </key> <true /> </dict> 2. <key> NSAppTransportSecurity </key> <dict> <key> NSExceptionDomains </key> <dict> <key> api-logncrash.cloud.toast.com </key> <dict> <key>nstemporaryexceptionallowsinsecurehttploads </key> <true /> </dict> <key> setting-logncrash.cloud.toast.com </key> <dict> <key>nstemporaryexceptionallowsinsecurehttploads </key> <true /> </dict> </dict> </dict> 3.ATS Assets > Toast > LogNCrash > Editor > post_process.py ios info.plist apilogncrash.cloud.toast.com setting-logncrash.cloud.toast.com. ios Native Crash Unity ios Crash Unity Engine Crash ios Naitve Crash.
Unity Crash Crash String Symbol. ios Crash Crash Symbol. Xcode Windows > Organizer., Show in Finder. ' '..dsym.zip > Analytic > Log & Crash Search > Settings >
. ios Unity Crash Crash. CrashHandler SDK logmessagereceived Unity CrashHandler LogNCrash Callback. CrashHandler,. ( MultihandlerSample ) LogNCrash.SetCrashHandler false CrashHandler. Initialize. LogNCrash.SetCrashHanlder (false); LogNCrash.Initialize (); LogNCrash.unity3dHandleException CrashHandler LogNCrash. void OnEnable() Application.logMessageReceived += HandleLog; void HandleLog(string logstring, string stacktrace, LogType type) if (LogNCrash.isInitialized) LogNCrash.unity3dHandleException (logstring, stacktrace, type); AssetDataBase
LogNCrash > Edit Settings AssetDataBase. BuildPipeline.BuildPlayer Build LogNCrashSettings.Setter_BuildType LogNCrashSettings.Getter_BuildType. using UnityEditor; using UnityEngine; using Toast.LogNCrash.Implementation; public class lncandroidbuildpipeline: MonoBehaviour [MenuItem("Build/Build Android (Alpha)")] public static void AndroidAlphaBuildScript() BuildPlayerOptions buildplayeroptions = new BuildPlayerOptions(); buildplayeroptions.scenes = new[] "Assets/Toast/Sample/Scene/Command/commandScene.unity"; buildplayeroptions.locationpathname = "AndroidBuild.apk"; buildplayeroptions.target = BuildTarget.Android; buildplayeroptions.options = BuildOptions.AutoRunPlayer; LogNCrashSettings.Setter_BuildType = LogNCrashSettings.BuildType.alpha; BuildPipeline.BuildPlayer(buildPlayerOptions); [MenuItem("Build/Build Android (Real)")] public static void AndroidRealBuildScript() BuildPlayerOptions buildplayeroptions = new BuildPlayerOptions(); buildplayeroptions.scenes = new[] "Assets/Toast/Sample/Scene/Command/commandScene.unity"; buildplayeroptions.locationpathname = "AndroidBuild.apk"; buildplayeroptions.target = BuildTarget.Android; buildplayeroptions.options = BuildOptions.AutoRunPlayer; LogNCrashSettings.Setter_BuildType = LogNCrashSettings.BuildType.real; BuildPipeline.BuildPlayer(buildPlayerOptions); AssetDataBase LogNCrash.
using Toast.LogNCrash.Implementation; void Start () if (LogNCrashSettings.Getter_BuildType == LogNCrashSettings.BuildType.real) SetReal (); else if (LogNCrashSettings.Getter_BuildType == LogNCrashSettings.BuildType.alpha) SetAlpha (); else UnityEngine.Debug.Log ("Default Type"); build type 5. public enum BuildType real, alpha, beta, development, test