public static void ServerLog(string message) { if (useLog) { message = string.Format(ServerLogFormatStr, message); LoggerBehavior.Log(message, LoggerBehavior.LoggerType.Log); UnityEngine.Debug.Log(message); } }
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); } } }