private static void HandleLog(string logString, string stackTrace, LogType type)
{
Debug.Log ("Right before Handle Log");
#if !UNITY_EDITOR
if (TestLogLevel(logLevel, type))
{
string output = string.Format("\n{1}: {0}\n", logString, type);
System.IO.File.AppendAllText(logFileLocation, output);
if (TestLogLevel(stackLogLevel, type))
{
// Write out stack trace
System.IO.File.AppendAllText(logFileLocation, "\nSTACK: " + System.Environment.StackTrace + "\n");
}
}
#endif
Debug.Log ("Right after Handle Log");
}