示例#1
0
        public static IDisposable Start(LogCallback callback)
        {
            var sink = new TestLogSink(callback);

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