Logger.cs 653 B

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