SlowLog.cs 399 B

12345678910111213141516171819
  1. using System;
  2. namespace Wayne.Lib.Log.SlowLog
  3. {
  4. public static class SlowLog
  5. {
  6. public static ISlowLogger Measure(string context, TimeSpan threshold)
  7. {
  8. return new Slowlogger(context, threshold);
  9. }
  10. static SlowLog()
  11. {
  12. Dummy = new DummySlowLog();
  13. }
  14. public static ISlowLogger Dummy { get; private set; }
  15. }
  16. }