71 references to ToolConsole
dotnet-svcutil-lib (71)
AppInsightsTelemetryClient.cs (1)
127ToolConsole.WriteWarning(ex.Message);
Bootstrapper\SvcutilBootstrapper.cs (11)
78ToolConsole.WriteLineIf(ToolConsole.ToolModeLevel != OperationalContext.Infrastructure, Resource.BootstrappingApplicationMsg); 87ToolConsole.WriteLineIf(ToolConsole.Verbosity >= Verbosity.Verbose, Resource.InvokingProjectMsg); 113ToolConsole.WriteLineIf(ToolConsole.Verbosity >= Verbosity.Verbose, Resource.CreatingProjectMsg); 192ToolConsole.WriteLineIf(ToolConsole.Verbosity >= Verbosity.Verbose, Resource.RestoringNuGetPackagesMsg); 197ToolConsole.WriteWarning(restoreResult.OutputText); 200ToolConsole.WriteLineIf(ToolConsole.Verbosity >= Verbosity.Verbose, Resource.BuildingProjectMsg);
DebugLogger.cs (6)
24ToolConsole.WriteError(message, isTrace: !logToUI); 28ToolConsole.WriteWarning(message, isTrace: !logToUI); 32ToolConsole.WriteLine(message, logToUI ? LogTag.Information : LogTag.LogMessage); 48ToolConsole.WriteError(message, isTrace: !logToUI); 52ToolConsole.WriteWarning(message, isTrace: !logToUI); 56ToolConsole.WriteLine(message, logToUI ? LogTag.Information : LogTag.LogMessage);
ImportModule.cs (9)
62ToolConsole.WriteError(e); 80ToolConsole.ExitCode = ToolExitCode.ValidationError; 91ToolConsole.WriteError(e); 119ToolConsole.WriteError(e); 135ToolConsole.ExitCode = ToolExitCode.ValidationErrorTurnedWarning; 151ToolConsole.WriteError(e); 154ToolConsole.WriteConversionErrors(_wsdlImporter.Errors); 158ToolConsole.WriteConversionErrors(_contractGenerator.Errors); 171ToolConsole.WriteWarning(string.Format(CultureInfo.CurrentCulture, SR.WrnCouldNotGenerateContractOperationsFormat, importer1, importer2));
MarkupTelemetryHelper.cs (9)
16if (ToolConsole.IsMarkupEnabled) 106ToolConsole.WriteLine(propName + LogTag.TraceProperty + propValue, LogTag.TraceProperty, ToolConsole.Space); 112if (ToolConsole.IsMarkupEnabled && !String.IsNullOrWhiteSpace(str)) 114ToolConsole.WriteLine(str, (succeess ? LogTag.TraceSuccess : LogTag.TraceFailure), ToolConsole.Space); 120if (ToolConsole.IsMarkupEnabled) 123ToolConsole.WriteLine(str, LogTag.TraceException, ToolConsole.Space);
Tool.cs (18)
94ToolConsole.Init(options); 95ToolConsole.WriteHeaderIf(options.NoLogo != true); 101ToolConsole.WriteHelp(); 110ToolConsole.WriteWarning(warning); 124ToolConsole.WriteWarning(warning); 134ToolConsole.WriteLine(bootstrapResult.OutputText); 213ToolConsole.WriteLine(string.Format(SR.RetreivingMetadataMsgFormat, serviceDescriptor.MetadataUrl.AbsoluteUri)); 218ToolConsole.WriteLine(string.Format(SR.ReadingMetadataMessageFormat, displayUri)); 246ToolConsole.WriteLine(SR.GeneratingFiles); 252ToolConsole.WriteLineIf(options.ToolContext != OperationalContext.Infrastructure, filePath, LogTag.Important); 255return ToolConsole.ExitCode; 368ToolConsole.WriteToolError(ex); 373ToolConsole.WriteError(rpe, null); 378ToolConsole.WriteToolError(ae); 383ToolConsole.WriteToolError(rt); 388ToolConsole.WriteError(dce); 393ToolConsole.WriteError(SR.ErrUnexpectedError); 398ToolConsole.WriteError(ex);
ToolConsole.cs (13)
50if (ToolConsole.Verbosity > Verbosity.Minimal && ToolConsole.ToolModeLevel != OperationalContext.Infrastructure) 130if (ToolConsole.Verbosity > Verbosity.Minimal || logTag == LogTag.Error || logTag == LogTag.Important || 131(ToolConsole.Verbosity == Verbosity.Minimal && logTag == LogTag.Warning) || LogTag.IsTrace(logTag)) 161if (ToolConsole.Verbosity == Verbosity.Silent) 193ToolConsole.WriteConversionError(conversionError); 201if (condition && ToolConsole.Verbosity > Verbosity.Minimal && ToolConsole.ToolModeLevel != OperationalContext.Infrastructure) 203ToolConsole.WriteLine(string.Format(SR.LogoFormat, Tool.ToolName, Tool.PackageVersion, SR.Microsoft_Copyright_CommandLine_Logo), LogTag.Important); 207ToolConsole.WriteLine(SR.TelemetryEnabled, LogTag.Information); 214if (ToolConsole.Verbosity > Verbosity.Silent && ToolConsole.ToolModeLevel != OperationalContext.Infrastructure) 216ToolConsole.WriteLine(HelpGenerator.GenerateHelpText(), LogTag.Important);
TypeLoader.cs (4)
33ToolConsole.WriteWarning(string.Format(SR.ErrUnableToLoadReferenceFormat, path, ex.Message)); 65ToolConsole.WriteWarning(warning); 75ToolConsole.WriteWarning(warning); 85ToolConsole.WriteWarning(warning);