Exemplo n.º 1
0
    public static void LogWarning(object message, Object context)
    {
#if !DISTRIBUTION_VERSION
        Debug.LogWarning(message, context);
        RealTimeLog.LogError(message.ToString());
#endif
    }
Exemplo n.º 2
0
 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 });
     });
 }
Exemplo n.º 3
0
    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
    }