public void Log(String tag, GameSparks.RT.GameSparksRT.LogLevel level, String msg, params object[] formatParams) { if (GameSparksRT.ShouldLog(tag, level)) { SubmitAction(LogCommand.pool.Pop().Configure(this, tag, level, msg, formatParams)); } }
public void Execute() { try{ if (GameSparksRT.ShouldLog(tag, level)) { GameSparksRT.Logger(session.PeerId + " " + tag + ":" + String.Format(msg, formatParams)); } }finally { pool.Push(this); } }