106 references to Log
dotnet (106)
Commands\Workload\Install\MsiInstallerBase.cs (16)
398Log?.LogMessage($"Moved '{sourceFile}' to '{destinationFile}'"); 410return Path.Combine(Path.GetDirectoryName(Log.LogPath), 411Path.GetFileNameWithoutExtension(Log.LogPath) + $"_{packInfo.ResolvedPackageId}-{packInfo.Version}_{action}.log"); 422return Path.Combine(Path.GetDirectoryName(Log.LogPath), 423Path.GetFileNameWithoutExtension(Log.LogPath) + $"_{msi.Manifest.Payload}_{action}.log"); 434return Path.Combine(Path.GetDirectoryName(Log.LogPath), 435Path.GetFileNameWithoutExtension(Log.LogPath) + $"_{productCode}_{action}.log"); 445return Path.Combine(Path.GetDirectoryName(Log.LogPath), 446Path.GetFileNameWithoutExtension(Log.LogPath) + $"_{Path.GetFileNameWithoutExtension(msiPath)}_AdminInstall.log"); 457return Path.Combine(Path.GetDirectoryName(Log.LogPath), 458Path.GetFileNameWithoutExtension(Log.LogPath) + $"_{record.MsiId}-{record.MsiNuGetVersion}_{action}.log"); 506Log?.LogMessage($"Dependent already exists, {providerKeyName} won't be modified."); 512Log?.LogMessage($"Dependent doesn't exist, {providerKeyName} won't be modified."); 522Log?.LogMessage($"Removing dependent '{dependent}' from provider '{providerKeyName}'"); 529Log?.LogMessage($"Registering dependent '{dependent}' on provider '{providerKeyName}'"); 555Log?.LogMessage($"Install state file does not exist: {path}");
Commands\Workload\Install\NetSdkMsiInstallerClient.cs (60)
59Log?.LogMessage($"Executing: {Microsoft.DotNet.Cli.Utils.Windows.GetProcessCommandLine()}, PID: {CurrentProcess.Id}, PPID: {ParentProcess.Id}"); 60Log?.LogMessage($"{nameof(IsElevated)}: {IsElevated}"); 61Log?.LogMessage($"{nameof(Is64BitProcess)}: {Is64BitProcess}"); 62Log?.LogMessage($"{nameof(RebootPending)}: {RebootPending}"); 63Log?.LogMessage($"{nameof(ProcessorArchitecture)}: {ProcessorArchitecture}"); 64Log?.LogMessage($"{nameof(HostArchitecture)}: {HostArchitecture}"); 65Log?.LogMessage($"{nameof(SdkDirectory)}: {SdkDirectory}"); 66Log?.LogMessage($"{nameof(VerifySignatures)}: {VerifySignatures}"); 67Log?.LogMessage($"SDK feature band: {_sdkFeatureBand}"); 125Log?.LogMessage($"Starting garbage collection."); 126Log?.LogMessage($"Garbage Collection Mode: CleanAllPacks={cleanAllPacks}."); 131getResolverForWorkloadSet, globalJsonWorkloadSetVersions, new SetupLogReporter(Log)); 134IEnumerable<SdkFeatureBand> installedFeatureBands = GetInstalledFeatureBands(Log); 165Log?.LogMessage($"Evaluating dependents for workload set, dependent: {depProvider}, Version: {workloadSetRecord.WorkloadSetVersion}, Feature Band: {workloadSetRecord.WorkloadSetFeatureBand}"); 174Log?.LogMessage($"Workload set {workloadSetRecord.WorkloadSetVersion}/{workloadSetRecord.WorkloadSetFeatureBand} will not be removed because other dependents remain: {string.Join(", ", remainingDependents)}."); 179Log?.LogMessage($"Removing workload set {workloadSetRecord.WorkloadSetVersion}/{workloadSetRecord.WorkloadSetFeatureBand} as no dependents remain."); 214Log?.LogMessage($"Evaluating dependents for workload manifest, dependent: {depProvider}, ID: {manifestRecord.ManifestId}, Version: {manifestRecord.ManifestVersion}, Feature Band: {manifestRecord.ManifestFeatureBand}"); 223Log?.LogMessage($"{manifestRecord.ManifestId} {manifestRecord.ManifestVersion}/{manifestRecord.ManifestFeatureBand} will not be removed because other dependents remain: {string.Join(", ", remainingDependents)}."); 228Log?.LogMessage($"Removing {manifestRecord.ManifestId} {manifestRecord.ManifestVersion}/{manifestRecord.ManifestFeatureBand} as no dependents remain."); 275Log?.LogMessage($"Evaluating dependents for workload pack, dependent: {depProvider}, MSI ID: {packRecord.MsiId}, MSI version: {packRecord.MsiNuGetVersion}"); 284Log?.LogMessage($"{packRecord.MsiId} ({packRecord.MsiNuGetVersion}) will not be removed because other dependents remain: {string.Join(", ", remainingDependents)}."); 289Log?.LogMessage($"Removing {packRecord.MsiId} ({packRecord.MsiNuGetVersion}) as no dependents remain."); 354Log?.LogMessage($"Resolving Microsoft.NET.Workloads ({workloadSetVersion}) to {msiPackageId} ({msiPackageVersion})."); 397Log?.LogMessage($"Skipping dependent: {dependent}"); 408Log?.LogMessage($"Dependent '{dependent}' was not removed because {reason}"); 412Log?.LogMessage($"Removing dependent '{dependent}' from provider key '{depProvider.ProviderKeyName}' because {reason}"); 418Log?.LogMessage($"{e.Message}"); 419Log?.LogMessage($"{e.StackTrace}"); 437Log?.LogMessage($"ProductCode mismatch! Cached package: {msi.ProductCode}, workload set record: {record.ProductCode}."); 463Log?.LogMessage($"ProductCode mismatch! Cached package: {msi.ProductCode}, manifest record: {record.ProductCode}."); 497Log?.LogMessage($"ProductCode mismatch! Cached package: {msi.ProductCode}, pack record: {record.ProductCode}."); 520Log?.LogMessage($"Attempting to delete all workload msi installation records."); 524Log?.LogMessage($"Detected band with installation record: '{potentialBandToClean}'."); 529Log?.LogMessage($"Workload {workloadInstallationRecordId} for '{potentialBandToClean}' has been marked for deletion."); 533Log?.LogMessage($"No more workloads detected in band: '{potentialBandToClean}'."); 567Log?.LogMessage($"Installing manifest: Id: {manifestUpdate.ManifestId}, version: {manifestUpdate.NewVersion}, feature band: {manifestUpdate.NewFeatureBand}."); 573Log?.LogMessage($"Resolving {manifestUpdate.ManifestId} ({manifestUpdate.NewVersion}) to {msiPackageId} ({msiPackageVersion})."); 661Log?.LogMessage($"The workload with id: {workload} was detected as being from VS only and having no SDK records. Creating one now under feature band {_sdkFeatureBand}."); 671Log?.LogMessage($"Rolling back workload pack installation for {msiToRollback.NuGetPackageId}."); 686Log?.LogMessage($"Cannot remove pack, other dependents remain: {string.Join(", ", depProvider.Dependents)}."); 700Log?.LogMessage("Rollback completed."); 716Log?.LogMessage("Shutting down"); 727Log?.LogMessage("Shutdown completed."); 728Log?.LogMessage($"Restart required: {Restart}"); 729((TimestampedFileLogger)Log).Dispose(); 749Log?.LogMessage($"ExtractManifestAsync: Extracting '{nupkgPath}' to '{targetPath}'"); 754Log?.LogMessage($"ExtractManifestAsync: Temporary extraction path: '{extractionPath}'"); 764Log?.LogMessage($"ExtractManifestAsync: Copying manifest from '{extractionPath}' to '{targetPath}'"); 782Log?.LogMessage($"ExtractManifestAsync: Running admin install for '{msiExtractionPath}'. Log file: '{adminInstallLog}'"); 790Log?.LogMessage($"ExtractManifestAsync: Admin install failed: {result}"); 823Log?.LogMessage($"{nameof(PackInfo)}: {nameof(packInfo.Id)}: {packInfo.Id}, {nameof(packInfo.Kind)}: {packInfo.Kind}, {nameof(packInfo.Version)}: {packInfo.Version}, {nameof(packInfo.ResolvedPackageId)}: {packInfo.ResolvedPackageId}"); 847Log?.LogMessage($"DetectPackage: Failed to parse version: {versionValue}."); 851Log?.LogMessage($"DetectPackage: ProductCode: {productCode}, version: {installedVersion?.ToString() ?? "n/a"}, state: {state}."); 878Log?.LogMessage($"PlanPackage: Begin, name: {msi.Name}, version: {msi.ProductVersion}, state: {state}, installed version: {installedVersion?.ToString() ?? "n/a"}, requested: {requestedAction}."); 905Log?.LogMessage($"PlanPackage: Completed, name: {msi.Name}, version: {msi.ProductVersion}, state: {state}, installed version: {installedVersion?.ToString() ?? "n/a"}, requested: {requestedAction}, planned: {plannedAction}."); 940Log?.LogMessage($"Downloaded {packageId} ({packageVersion}) to '{packagePath}"); 945Log?.LogMessage($"Using offline cache, package: {packagePath}"); 957Log?.LogMessage($"Extracting '{packageId}' to '{extractionDirectory}'"); 1162Log?.LogMessage($"OnProcessExit: Shutdown failed, {ex.Message}"); 1166if (Log is IDisposable tfl)
Commands\Workload\Install\NetSdkMsiInstallerClient.InstallRecords.cs (17)
22Log?.LogMessage($"Detecting installed workload sets for {HostArchitecture}."); 49Log.LogMessage($"Found workload set record, version: {workloadSetVersion}, feature band: {workloadSetFeatureBand}, ProductCode: {record.ProductCode}, provider key: {record.ProviderKeyName}"); 84Log?.LogMessage($"Detecting installed workload manifests for {HostArchitecture}."); 99Log.LogMessage($"Found apparent manifest package ID '{manifestPackageId} which did not correctly parse into manifest ID and feature band."); 122Log.LogMessage($"Found workload manifest record, Id: {manifestId}, version: {manifestVersion}, feature band: {manifestFeatureBand}, ProductCode: {record.ProductCode}, provider key: {record.ProviderKeyName}"); 141Log.LogMessage($"Skipping invalid feature band version folder: {manifestFeatureBandFolder}"); 165Log.LogMessage($"Discovered manifest installation in {manifestVersionFolder} which didn't have corresponding installation record in Registry"); 172Log.LogMessage($"Looking for upgrade code {upgradeCode} for {uuidName}"); 199Log.LogMessage($"Found installed manifest: {manifestRecord.ProviderKeyName}, {manifestRecord.ProductCode}"); 203Log.LogMessage($"Found multiple product codes for {uuidName}, which is not expected for side-by-side manifests: {string.Join(' ', relatedProductCodes)}"); 207Log.LogMessage($"Found manifest on disk for {uuidName}, but did not find installation information in registry."); 213Log.LogMessage($"Skipping invalid manifest version for {manifestVersionFolder}"); 219Log.LogMessage($"Skipping unknown manifest ID {lowerCasedManifestID}."); 304Log?.LogMessage($"Detecting installed workload packs for {HostArchitecture}."); 336Log?.LogMessage($"Found workload pack record, Id: {packId}, version: {packVersion}, ProductCode: {record.ProductCode}, provider key: {record.ProviderKeyName}"); 363Log?.LogMessage($"Found workload pack group record, Id: {packGroupId}, version: {packGroupVersion}, ProductCode: {record.ProductCode}, provider key: {record.ProviderKeyName}"); 371Log?.LogMessage($"Found workload pack in group, Id: {packId}, version: {packVersion}");
Commands\Workload\Install\NetSdkMsiInstallerServer.cs (1)
151Log?.LogMessage("Shutting down server.");
Commands\Workload\Install\WorkloadInstallRecords\RegistryWorkloadInstallationRecordRepository.cs (3)
57Log?.LogMessage($"Deleting {workloadInstallationKeyName}"); 101Log?.LogMessage($"Creating {subkeyName}"); 106Log?.LogMessage($"Failed to create {subkeyName}");
Installer\Windows\InstallerBase.cs (3)
179Log?.LogMessage($"{message} Error: 0x{error:x8}."); 192Log?.LogMessage($"Exception: {exception.Message}, HResult: 0x{exception.HResult:x8}."); 193Log?.LogMessage($"{exception.StackTrace}");
Installer\Windows\MsiPackageCache.cs (6)
73SecurityUtils.MoveAndSecureFile(manifestPath, cachedManifestPath, Log); 74SecurityUtils.MoveAndSecureFile(msiPath, cachedMsiPath, Log); 126Log?.LogMessage($"MSI manifest file does not exist, '{manifestPath}'"); 137Log?.LogMessage($"MSI package not found, '{possibleMsiPath}'"); 173Log?.LogMessage($"Successfully verified Authenticode signature for {msiPath}"); 179Log?.LogMessage($"Skipping signature verification for {msiPath}.");