41 references to CommandLoggingContext
dotnet (25)
Commands\BuildServer\Shutdown\BuildServerShutdownCommand.cs (1)
143if (CommandLoggingContext.IsVerbose)
Commands\New\NewCommandParser.cs (13)
49if (diagnosticMode || CommandLoggingContext.IsVerbose) 51CommandLoggingContext.SetError(true); 52CommandLoggingContext.SetOutput(true); 53CommandLoggingContext.SetVerbose(true); 65CommandLoggingContext.SetError(false); 66CommandLoggingContext.SetOutput(false); 67CommandLoggingContext.SetVerbose(false); 71CommandLoggingContext.SetError(true); 72CommandLoggingContext.SetOutput(false); 73CommandLoggingContext.SetVerbose(false); 77CommandLoggingContext.SetError(true); 78CommandLoggingContext.SetOutput(true); 79CommandLoggingContext.SetVerbose(false);
Commands\Run\RunCommand.cs (1)
1052if (CommandLoggingContext.IsVerbose)
Commands\Run\VirtualProjectBuildingCommand.cs (1)
385Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose ?
Commands\Tool\Restore\ToolRestoreCommand.cs (1)
93if (CommandLoggingContext.IsVerbose)
Parser.cs (4)
268Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose ? 274Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose ? 281Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose ? 288Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose ?
ParserOptionActions.cs (2)
49Environment.SetEnvironmentVariable(CommandLoggingContext.Variables.Verbose, bool.TrueString); 50CommandLoggingContext.SetVerbose(true);
Program.cs (2)
67if (CommandLoggingContext.IsVerbose) 123Reporter.Error.WriteLine(CommandLoggingContext.IsVerbose
Microsoft.DotNet.Cli.Utils (16)
Command.cs (6)
42if (CommandLoggingContext.IsVerbose) 69if (CommandLoggingContext.IsVerbose) 132if (!onlyIfVerbose || CommandLoggingContext.IsVerbose) 139EnvironmentVariable(CommandLoggingContext.Variables.AnsiPassThru, ansiPassThrough.ToString()); 152if (!onlyIfVerbose || CommandLoggingContext.IsVerbose) 159EnvironmentVariable(CommandLoggingContext.Variables.AnsiPassThru, ansiPassThrough.ToString());
Reporter.cs (10)
42/// Resets the reporters to write to the current reporters based on <see cref="CommandLoggingContext"/> settings. 56/// The reporter won't be applied if disabled in <see cref="CommandLoggingContext"/>. 70/// The reporter won't be applied if disabled in <see cref="CommandLoggingContext"/>. 83/// The reporter won't be applied if disabled in <see cref="CommandLoggingContext"/>. 96Output = CommandLoggingContext.OutputEnabled ? s_outputReporter : NullReporter; 101Error = CommandLoggingContext.ErrorEnabled ? s_errorReporter : NullReporter; 106Verbose = CommandLoggingContext.IsVerbose 107? (CommandLoggingContext.IsVerboseToStdErr && ReferenceEquals(s_verboseReporter, s_consoleOutReporter) 117if (CommandLoggingContext.ShouldPassAnsiCodesThrough) 137if (CommandLoggingContext.ShouldPassAnsiCodesThrough)