protected override void Log(string text, GladNet.Common.LogType state, params object[] data) { StringBuilder builder = new StringBuilder(state.ToString()); builder.Append(": ").AppendFormat(text, data); switch (state) { case GladNet.Common.LogType.Debug: Debug.Log(builder.ToString()); break; case GladNet.Common.LogType.Warn: Debug.LogWarning(builder.ToString()); break; case GladNet.Common.LogType.Error: Debug.LogError(builder.ToString()); break; } }
protected override void Log(object obj, GladNet.Common.LogType state) { this.Log((string)(obj == null ? "[NULL]" : obj.ToString()), state); }
protected override void Log(string text, GladNet.Common.LogType state, params string[] data) { this.Log(text, state, (object[])data); }
public UnityLogger(GladNet.Common.LogType state) : base(state) { }