Log.cs 630 B

1234567891011121314151617181920212223242526272829303132333435
  1. namespace Common.Logger
  2. {
  3. public static class Log
  4. {
  5. private static readonly ILog globalLog = new NLogAdapter(new StackInfoDecorater());
  6. public static ILog GlobalLog
  7. {
  8. get
  9. {
  10. return globalLog;
  11. }
  12. }
  13. public static void Trace(string message)
  14. {
  15. GlobalLog.Trace(message);
  16. }
  17. public static void Trace(string format, params object[] args)
  18. {
  19. GlobalLog.Trace(string.Format(format, args));
  20. }
  21. public static void Debug(string format)
  22. {
  23. GlobalLog.Debug(format);
  24. }
  25. public static void Debug(string format, params object[] args)
  26. {
  27. GlobalLog.Debug(string.Format(format, args));
  28. }
  29. }
  30. }