public static void LogWarning(object message, Object context) { #if !DISTRIBUTION_VERSION Debug.LogWarning(message, context); RealTimeLog.LogError(message.ToString()); #endif }
private void Record(RealTimeLog log) { dgv_record.Invoke(() => { if (dgv_record.Rows.Count >= 100) { dgv_record.Rows.RemoveAt(dgv_record.Rows.Count - 1); } dgv_record.Rows.Insert(0, new String[] { log.LocalAddress, log.CreateTime.ToString("yyyy-MM-dd HH:mm:ss.fff"), log.Type, log.Content }); }); }
public static void LogError(string format, params object[] args) { #if !DISTRIBUTION_VERSION string message = format; try { message = System.String.Format(format, args); } catch { for (int i = 0; i < args.Length; i++) { message += args[i].ToString(); } } Debug.LogError(message); RealTimeLog.LogError(message.ToString()); #endif }