RobotLog.cs 696 B

123456789101112131415161718192021222324252627
  1. namespace ET.Server
  2. {
  3. public static class RobotLog
  4. {
  5. #if DOTNET
  6. public static void Debug(ref System.Runtime.CompilerServices.DefaultInterpolatedStringHandler message)
  7. {
  8. Logger.Instance.Debug(message.ToStringAndClear());
  9. }
  10. public static void Console(ref System.Runtime.CompilerServices.DefaultInterpolatedStringHandler message)
  11. {
  12. Logger.Instance.Console(message.ToStringAndClear());
  13. }
  14. #endif
  15. public static void Debug(string msg)
  16. {
  17. Logger.Instance.Debug(msg);
  18. }
  19. public static void Console(string msg)
  20. {
  21. Logger.Instance.Console(msg);
  22. }
  23. }
  24. }