12345678910111213141516171819 |
- using System;
- namespace Wayne.Lib.Log.SlowLog
- {
- public static class SlowLog
- {
- public static ISlowLogger Measure(string context, TimeSpan threshold)
- {
- return new Slowlogger(context, threshold);
- }
- static SlowLog()
- {
- Dummy = new DummySlowLog();
- }
- public static ISlowLogger Dummy { get; private set; }
- }
- }
|