Log.cs 542 B

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