LogHelper.cs 871 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. namespace WWPipeLine.Commons
  3. {
  4. public static class LogHelper
  5. {
  6. private static WWPipeLine.Commons.Log4Logger log = new Log4Logger();
  7. public static void Debug(string message)
  8. {
  9. log.Debug(message);
  10. }
  11. public static void Error(Exception ex)
  12. {
  13. log.Error(ex);
  14. }
  15. public static void Error(string message)
  16. {
  17. log.Debug(message);
  18. }
  19. public static void Fatal(Exception ex)
  20. {
  21. log.Fatal(ex);
  22. }
  23. public static void Fatal(string message)
  24. {
  25. log.Debug(message);
  26. }
  27. public static void Info(string message)
  28. {
  29. log.Debug(message);
  30. }
  31. public static void Warn(string message)
  32. {
  33. log.Debug(message);
  34. }
  35. }
  36. }