1 write to Logger
dotnet-watch (1)
Program.cs (1)
314Logger = logger,
67 references to Logger
dotnet-watch (15)
Watch\BuildEvaluator.cs (6)
67_context.Logger.LogDebug("Cannot use --no-restore since msbuild project files have changed."); 71_context.Logger.LogDebug("Modifying command to use --no-restore"); 118_context.Logger.LogDebug("Evaluating dotnet-watch file set."); 143_context.Logger, 145startedWatching: () => _context.Logger.Log(MessageDescriptor.FixBuildError), 169_context.Logger.LogDebug("Re-evaluation needed due to changes in '{Path}'.", file);
Watch\DotNetWatcher.cs (9)
21context.Logger.LogDebug("MSBuild incremental optimizations suppressed."); 33context.Logger.LogError("Failed to find a list of files to watch"); 42staticFileHandler = new StaticFileHandler(context.Logger, evaluationResult.ProjectGraph, context.BrowserRefreshServerFactory); 46context.Logger.LogDebug("Unable to determine if this project is a webapp."); 94using var fileSetWatcher = new FileWatcher(context.Logger, context.EnvironmentOptions); 98var processTask = context.ProcessRunner.RunAsync(processSpec, context.Logger, launchResult: null, combinedCancellationSource.Token); 103context.Logger.Log(MessageDescriptor.WaitingForChanges); 141startedWatching: () => context.Logger.Log(MessageDescriptor.WaitingForFileChangeBeforeRestarting), 149context.Logger.LogInformation("File changed: {Path}", changedFile.Value.Item.FilePath);
Microsoft.DotNet.HotReload.Watch (52)
AppModels\HotReloadAppModel.cs (5)
29context.Logger.Log(MessageDescriptor.ApplicationKind_BlazorWebAssembly); 37context.Logger.Log(MessageDescriptor.ApplicationKind_BlazorHosted, projectNode.ProjectInstance.FullPath, clientProject.ProjectInstance.FullPath); 41context.Logger.Log(MessageDescriptor.ApplicationKind_WebApplication); 47context.Logger.Log(MessageDescriptor.ApplicationKind_WebSockets); 51context.Logger.Log(MessageDescriptor.ApplicationKind_Default);
HotReload\CompilationHandler.cs (9)
65Workspace = new HotReloadMSBuildWorkspace(context.Logger, projectFile => (instances: _projectInstances.GetValueOrDefault(projectFile, []), project: null)); 76=> _context.Logger; 452_context.Logger.LogError("Failed to relaunch: {Exception}", e.ToString()); 507_context.Logger.Log(MessageDescriptor.ManagedCodeChangesApplied, elapsedMilliseconds); 512_context.Logger.Log(MessageDescriptor.StaticAssetsChangesApplied, elapsedMilliseconds); 515_context.Logger.Log(MessageDescriptor.ChangesAppliedToProjectsNotification, 526_context.Logger.LogError("Failed to apply managedCodeUpdates: {Exception}", e.ToString()); 883_context.Logger.Log(MessageDescriptor.RestartingProjectsNotification, projectsToRestart.Select(p => p.Options.Representation)); 889_context.Logger.Log(MessageDescriptor.ProjectsRestarted, projectsToRestart.Count);
HotReload\HotReloadDotNetWatcher.cs (37)
47context.Logger.LogDebug("DOTNET_WATCH_RESTART_ON_RUDE_EDIT = 'true'. Will restart without prompt."); 50_rudeEditRestartPrompt = new RestartPrompt(context.Logger, consoleInput, noPrompt ? true : null); 67_context.Logger.Log(MessageDescriptor.HotReloadEnabled); 68_context.Logger.Log(MessageDescriptor.PressCtrlRToRestart); 75_context.Logger.Log(source.IsCancellationRequested ? MessageDescriptor.RestartInProgress : MessageDescriptor.RestartRequested); 80using var fileWatcher = new FileWatcher(_context.Logger, _context.EnvironmentOptions); 127evaluationResult.ItemExclusions.Report(_context.Logger); 163_context.Logger.LogDebug("Using Aspire process launcher."); 170_context.Logger.Log(MessageDescriptor.RuntimeProcessLauncherCreatedNotification); 216_context.Logger.LogDebug("File change: {Kind} '{Path}'.", change.Kind, change.Path); 223_context.Logger.Log(MessageDescriptor.WaitingForChanges); 298startedWatching: () => _context.Logger.Log(MessageDescriptor.FixBuildError), 306_context.Logger.Log(MessageDescriptor.ProjectsRebuilt, updates.ProjectsToRebuild.Count); 313_context.Logger.Log(MessageDescriptor.ProjectDependenciesDeployed, updates.ProjectsToRedeploy.Count); 387startedWatching: () => _context.Logger.Log(MessageDescriptor.FixBuildError), 412_context.Logger.Log(MessageDescriptor.ReEvaluationCompleted); 497_context.Logger.Log(MessageDescriptor.Restarting); 524_context.Logger.LogInformation("Affected projects:"); 528_context.Logger.LogInformation(" {ProjectName}", projectName); 537_context.Logger.LogDebug("Restarting without prompt since dotnet-watch is running in non-interactive mode."); 541_context.Logger.LogDebug(" Project to restart: '{ProjectName}'", projectName); 556_context.Logger.Log(MessageDescriptor.ProjectChangeTriggeredReEvaluation, firstBuildFilePath); 582_context.Logger.Log(MessageDescriptor.FileAdditionTriggeredReEvaluation, filePath); 684_context.Logger.LogDebug("[{ProjectName}] {TargetName} target failed", failedInstance.GetDisplayName(), TargetName); 719_context.Logger.LogDebug("Deploying project dependency '{TargetPath}' from '{SourcePath}'", targetPath, sourcePath); 733_context.Logger.LogDebug("Copy failed: {Message}", e.Message); 751startedWatching: () => _context.Logger.Log(messageDescriptor), 764startedWatching: () => _context.Logger.Log(messageDescriptor), 801return !evaluationResult.ItemExclusions.IsExcluded(path, kind, _context.Logger); 815_context.Logger.Log(MessageDescriptor.IgnoringChangeInHiddenDirectory, containingHiddenDir, kind, path); 909_context.Logger.LogInformation(GetMessage(items, kind)); 983_context.Logger.Log(MessageDescriptor.BuildStartedNotification, projects); 990_context.Logger.Log(MessageDescriptor.BuildCompletedNotification, (projects, success)); 1090_context.Logger.LogDebug("Selected device: {DeviceId}", selectedDevice); 1200_context.Logger.LogDebug("ComputeAvailableDevices target failed or returned no output."); 1217_context.Logger.Log(MessageDescriptor.NoDevicesAvailable); 1291var success = await _context.ProcessRunner.RunAsync(processSpec, _context.Logger, launchResult: null, cancellationToken) == 0;
Process\ProjectLauncher.cs (1)
21=> context.Logger;