示例#1
0
 private static void AddLogEvent()
 {
     if (UnityLogFileUtility.CreateLogFile())
     {
         m_LogCount = 0;
         Application.logMessageReceived += LogEvent;
         m_LogStart = true;
     }
 }
示例#2
0
        private static void LogEvent(string mes, string trace, LogType type)
        {
            uint num = m_LogCount;

            LogMessage temp = new LogMessage(num, mes, trace, type);

            UnityLogFileUtility.WriteMessage(LogCSV.CSVTypeString(temp));
            m_LogCount++;
        }
示例#3
0
 private static void RemoveLogEvent()
 {
     if (m_LogStart)
     {
         Application.logMessageReceived -= LogEvent;
         UnityLogFileUtility.CloseLogFile();
         m_LogCount = 0;
         m_LogStart = false;
     }
 }
示例#4
0
 public static void OpenFolder()
 {
     UnityLogFileUtility.OpenLogFolder();
 }