Log.cs 653 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. namespace ETModel
  3. {
  4. public static class Log
  5. {
  6. public static void Trace(string msg)
  7. {
  8. UnityEngine.Debug.Log(msg);
  9. }
  10. public static void Warning(string msg)
  11. {
  12. UnityEngine.Debug.LogWarning(msg);
  13. }
  14. public static void Info(string msg)
  15. {
  16. UnityEngine.Debug.Log(msg);
  17. }
  18. public static void Error(Exception e)
  19. {
  20. UnityEngine.Debug.LogError(e.ToString());
  21. }
  22. public static void Error(string msg)
  23. {
  24. UnityEngine.Debug.LogError(msg);
  25. }
  26. public static void Debug(string msg)
  27. {
  28. UnityEngine.Debug.Log(msg);
  29. }
  30. public static void Msg(object msg)
  31. {
  32. Debug(Dumper.DumpAsString(msg));
  33. }
  34. }
  35. }