1 instantiation of PrintLineDebugger
Microsoft.Build (1)
PrintLineDebugger.cs (1)
110return new PrintLineDebugger(
44 references to PrintLineDebugger
Microsoft.Build (6)
PrintLineDebugger.cs (6)
35public static Lazy<PrintLineDebugger> Default = 36new Lazy<PrintLineDebugger>(() => Create(null, null, false)); 38public static Lazy<PrintLineDebugger> DefaultWithProcessInfo = 39new Lazy<PrintLineDebugger>(() => Create(null, null, true)); 105public static PrintLineDebugger Create( 161ErrorUtilities.ThrowInternalError($"The writer from this {nameof(PrintLineDebugger)} instance differs from the static writer.");
Microsoft.Build.Engine.UnitTests (36)
PrintLineDebugger_Tests.cs (36)
44using (var logger = PrintLineDebugger.Create(writer.Writer())) 69using (var logger = PrintLineDebugger.Create(compositeWriter.Writer)) 88using (var logger = PrintLineDebugger.Create(writer.Writer(), "foo")) 107PrintLineDebugger.Default.Value.Log("outOfContext1"); 116PrintLineDebugger.Default.Value.Log("inner"); 119PrintLineDebugger.Default.Value.Log("outOfContext2"); 135PrintLineDebugger.Default.Value.Log("outOfContext1"); 139PrintLineDebugger.SetWriter(writer.Writer()); 141PrintLineDebugger.Default.Value.Log("inner"); 145PrintLineDebugger.UnsetWriter(); 148PrintLineDebugger.Default.Value.Log("outOfContext2"); 163PrintLineDebugger.Default.Value.Log("outOfContext1"); 165using (var logger = PrintLineDebugger.Create(writer.Writer())) 170PrintLineDebugger.Default.Value.Log("inner"); 174PrintLineDebugger.Default.Value.Log("outOfContext2"); 199PrintLineDebugger.SetWriter(new MockWriter().Writer()); 200PrintLineDebugger.UnsetWriter(); 202PrintLineDebugger.SetWriter(new MockWriter().Writer()); 211PrintLineDebugger.SetWriter(new MockWriter().Writer()); 215PrintLineDebugger.UnsetWriter(); 216PrintLineDebugger.SetWriter(new MockWriter().Writer()); 217PrintLineDebugger.UnsetWriter(); 223PrintLineDebugger.SetWriter(new MockWriter().Writer()); 224PrintLineDebugger.UnsetWriter(); 234PrintLineDebugger.SetWriter(new MockWriter().Writer()); 238PrintLineDebugger.SetWriter(new MockWriter().Writer()); 239PrintLineDebugger.UnsetWriter(); 245PrintLineDebugger.SetWriter(new MockWriter().Writer()); 246PrintLineDebugger.UnsetWriter(); 255PrintLineDebugger.UnsetWriter(); 259PrintLineDebugger.SetWriter(new MockWriter().Writer()); 260PrintLineDebugger.UnsetWriter();
Microsoft.Build.UnitTests.Shared (2)
TestEnvironment.cs (2)
829private readonly PrintLineDebugger _printLineDebugger; 833_printLineDebugger = PrintLineDebugger.Create(writer);