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