Example #1
0
        public static void InitLogger()
        {
            string url = ConfigPath.ConvertToUrl(Application.streamingAssetsPath + "/" + ConfigPath.CLIENT_LOGGER_CONFIG);

            Console.WriteLine("Load client logger config: " + url);
            WWW www = new WWW(url);

            while (!www.isDone)
            {
            }
            if (!string.IsNullOrEmpty(www.error))
            {
                Debug.LogError("Error loading logger config from: " + url + " Error: " + www.error);
            }
            else
            {
                LoggerProvider.LoadConfiguration(new MemoryStream(www.bytes));
            }
        }