Пример #1
0
 public static void ServerLog(string message)
 {
     if (useLog)
     {
         message = string.Format(ServerLogFormatStr, message);
         LoggerBehavior.Log(message, LoggerBehavior.LoggerType.Log);
         UnityEngine.Debug.Log(message);
     }
 }
Пример #2
0
    public static void LogError(object value)
    {
        if (value == null)
        {
            UnityEngine.Debug.LogError("LogError value is null");
            return;
        }

        if (useLog)
        {
            UnityEngine.Debug.LogError(value.ToString());
        }

        LoggerBehavior.Log(value.ToString(), LoggerBehavior.LoggerType.Error);

        for (int i = 0; i < msLoggerList.Count; i++)
        {
            IBaseLogger logger = msLoggerList[i];
            if (logger != null)
            {
                logger.LogError(value);
            }
        }
    }