C#打印日志的小技巧

public static void Log(params System.Object[] message)
    {
        string str = "";
        if (message == null || message.Length == 0)
        {
            str = "null";
        }
        else
        {
            for (int i = 0; i < message.Length; i++)
            {
                str+=message[i];
            }
        }
        Debug.Log(str);
    }