1 write to Logger
dotnet-watch (1)
Program.cs (1)
315Logger = logger,
61 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 (46)
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\HotReloadDotNetWatcher.cs (40)
48context.Logger.LogDebug("DOTNET_WATCH_RESTART_ON_RUDE_EDIT = 'true'. Will restart without prompt."); 51_rudeEditRestartPrompt = new RestartPrompt(context.Logger, consoleInput, noPrompt ? true : null); 68_context.Logger.Log(MessageDescriptor.HotReloadEnabled); 69_context.Logger.Log(MessageDescriptor.PressCtrlRToRestart); 76_context.Logger.Log(source.IsCancellationRequested ? MessageDescriptor.RestartInProgress : MessageDescriptor.RestartRequested); 81using var fileWatcher = new FileWatcher(_context.Logger, _context.EnvironmentOptions); 91var runningProjectsManager = new RunningProjectsManager(_context.ProcessRunner, _context.Logger); 130evaluationResult.ItemExclusions.Report(_context.Logger); 138workspace = new ManagedCodeWorkspace(_context.Logger, runningProjectsManager); 166_context.Logger.LogDebug("Using Aspire process launcher."); 173_context.Logger.Log(MessageDescriptor.RuntimeProcessLauncherCreatedNotification); 221_context.Logger.LogDebug("File change: {Kind} '{Path}'.", change.Kind, change.Path); 228_context.Logger.Log(MessageDescriptor.WaitingForChanges); 258Logger = _context.Logger, 314startedWatching: () => _context.Logger.Log(MessageDescriptor.FixBuildError), 322_context.Logger.Log(MessageDescriptor.ProjectsRebuilt, updatesBuilder.ProjectsToRebuild.Count); 329_context.Logger.Log(MessageDescriptor.ProjectDependenciesDeployed, updatesBuilder.ProjectsToRedeploy.Count); 403startedWatching: () => _context.Logger.Log(MessageDescriptor.FixBuildError), 428_context.Logger.Log(MessageDescriptor.ReEvaluationCompleted); 512_context.Logger.Log(MessageDescriptor.Restarting); 539_context.Logger.LogInformation("Affected projects:"); 543_context.Logger.LogInformation(" {ProjectName}", projectName); 552_context.Logger.LogDebug("Restarting without prompt since dotnet-watch is running in non-interactive mode."); 556_context.Logger.LogDebug(" Project to restart: '{ProjectName}'", projectName); 571_context.Logger.Log(MessageDescriptor.ProjectChangeTriggeredReEvaluation, firstBuildFilePath); 597_context.Logger.Log(MessageDescriptor.FileAdditionTriggeredReEvaluation, filePath); 699_context.Logger.LogDebug("[{ProjectName}] {TargetName} target failed", failedInstance.GetDisplayName(), TargetName); 734_context.Logger.LogDebug("Deploying project dependency '{TargetPath}' from '{SourcePath}'", targetPath, sourcePath); 748_context.Logger.LogDebug("Copy failed: {Message}", e.Message); 766startedWatching: () => _context.Logger.Log(messageDescriptor), 779startedWatching: () => _context.Logger.Log(messageDescriptor), 816return !evaluationResult.ItemExclusions.IsExcluded(path, kind, _context.Logger); 830_context.Logger.Log(MessageDescriptor.IgnoringChangeInHiddenDirectory, containingHiddenDir, kind, path); 924_context.Logger.LogInformation(GetMessage(items, kind)); 998_context.Logger.Log(MessageDescriptor.BuildStartedNotification, projects); 1005_context.Logger.Log(MessageDescriptor.BuildCompletedNotification, (projects, success)); 1111_context.Logger.LogDebug("Selected device: {DeviceId}", selectedDevice); 1222_context.Logger.LogDebug("ComputeAvailableDevices target failed or returned no output."); 1239_context.Logger.Log(MessageDescriptor.NoDevicesAvailable); 1313var success = await _context.ProcessRunner.RunAsync(processSpec, _context.Logger, launchResult: null, cancellationToken) == 0;
Process\ProjectLauncher.cs (1)
21=> context.Logger;