private static void HandleUnityLog(string message, string stacktrace, LogType type)
        {
            if (!EnableUnityLogger)
            {
                return;
            }

            if (message[message.Length - 1] == TkLoggerConstants.UNITY_LOG_MARKER)
            {
                return;
            }

            var level      = UnityLogDestination.TypeToLevel(type);
            var loggerName = TkLoggerConstants.UNITY_LOG_NAME;

            stacktrace = stacktrace.Replace("\\", "/");
            LogToDestinations(new TkLogMessage(level, loggerName, loggerName, message, stacktrace), false);
        }
 private static void Initialize()
 {
     s_unityLogDestination = new UnityLogDestination();
     Application.logMessageReceivedThreaded += HandleUnityLog;
     LifeCycle.Instance.Update += Update;
 }