public void Append(PpsLogType type, Exception exception, string alternativeException) { Append(type, String.IsNullOrEmpty(alternativeException) ? exception.UnpackException().ToString() : alternativeException + Environment.NewLine + exception.UnpackException().ToString() ); }
public void LuaTrace(PpsLogType type, params object[] args) { if (args == null || args.Length == 0) { return; } if (args[0] is string) { Log.Append(type, String.Format((string)args[0], args.Skip(1).ToArray())); } else { Log.Append(type, String.Join(", ", args)); } } // proc LuaTrace
public void Append(PpsLogType type, string message) => Debug.WriteLine("[" + type.ToString() + "] " + message);