Exemple #1
0
        /// <summary>
        /// Write log in text
        /// For editor path is dataPath, and for other platform path is persistentDataPath
        /// </summary>
        /// <param name="condition"></param>
        /// <param name="stackTrace"></param>
        /// <param name="type"></param>
        public void Text(string condition, string stackTrace, LogType type)
        {
            var typeInfo = string.Format("[{0}]", type.ToString());
            var log      = typeInfo + LogTime.GetTimeFormat() + condition;
            var sw       = File.AppendText(HiLogFilePath);

            sw.WriteLine(log + "\n" + stackTrace);
            sw.Close();
        }
Exemple #2
0
 public LogScreenInfo(string condition, string stackTrace, LogType type)
 {
     this.Condition  = LogTime.GetTimeFormat() + condition;
     this.StackTrace = stackTrace;
     this.Type       = type;
 }