RobotLog.cs 425 B

1234567891011121314151617181920212223242526
  1. using DnsClient.Internal;
  2. namespace ET
  3. {
  4. public static class RobotLog
  5. {
  6. private static readonly ILog logger = new NLogger("RobotConsole");
  7. public static void Debug(string msg)
  8. {
  9. Log.Info(msg);
  10. logger.Info(msg);
  11. }
  12. public static void Debug(string msg, params object[] args)
  13. {
  14. Log.Info(msg);
  15. logger.Info(msg, args);
  16. }
  17. public static void Console(string msg)
  18. {
  19. logger.Info(msg);
  20. }
  21. }
  22. }