コード例 #1
0
        IEnumerator LoadValue(string url, System.Action <DataElement> handler)
        {
            CoreLogger.LogInfo(_loggerModule, string.Format("url {0} requested", url));

            WWW www = new WWW(url);

            yield return(www);

            if (www.error != null)
            {
                CoreLogger.LogWarning(_loggerModule, string.Format("failed to retrieve url - {0}", www.error));
                handler(null);
                yield break;
            }

            CoreLogger.LogTrace(_loggerModule, string.Format("requested url {0} returned {1}", url, www.text));

            DataElement dataElement = DataElement.Parse(www.text);

            handler(dataElement);
        }
コード例 #2
0
 public void should_call_Trace()
 {
     _coreLogger.LogTrace(_message);
     _logger.Validate(LogLevel.Trace, _message);
 }