Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
 protected override void Log(object obj, GladNet.Common.LogType state)
 {
     this.Log((string)(obj == null ? "[NULL]" : obj.ToString()), state);
 }
Beispiel #3
0
 protected override void Log(string text, GladNet.Common.LogType state, params string[] data)
 {
     this.Log(text, state, (object[])data);
 }
Beispiel #4
0
 public UnityLogger(GladNet.Common.LogType state)
     : base(state)
 {
 }