public static IDisposable Start(LogCallback callback) { var sink = new TestLogSink(callback); Logger.Sink = sink; return(Disposable.Create(() => Logger.Sink = null)); }
public static IDisposable Start(LogCallback callback) { var sink = new TestLogSink(callback); Logger.Sink = sink; return Disposable.Create(() => Logger.Sink = null); }