1 write to Logger
dotnet-watch (1)
Program.cs (1)
316Logger = 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)
22context.Logger.LogDebug("MSBuild incremental optimizations suppressed."); 34context.Logger.LogError("Failed to find a list of files to watch"); 43staticFileHandler = new StaticFileHandler(context.Logger, evaluationResult.ProjectGraph, context.BrowserRefreshServerFactory); 47context.Logger.LogDebug("Unable to determine if this project is a webapp."); 52using var fileSetWatcher = new FileWatcher(context.Logger, context.EnvironmentOptions); 105var processTask = context.ProcessRunner.RunAsync(processSpec, context.Logger, launchResult: null, combinedCancellationSource.Token); 110context.Logger.Log(MessageDescriptor.WaitingForChanges); 148startedWatching: () => context.Logger.Log(MessageDescriptor.WaitingForFileChangeBeforeRestarting), 156context.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); 66_context.Logger.Log(MessageDescriptor.HotReloadEnabled); 67_context.Logger.Log(MessageDescriptor.PressCtrlRToRestart); 74_context.Logger.Log(source.IsCancellationRequested ? MessageDescriptor.RestartInProgress : MessageDescriptor.RestartRequested); 79using var fileWatcher = new FileWatcher(_context.Logger, _context.EnvironmentOptions); 89var runningProjectsManager = new RunningProjectsManager(_context.ProcessRunner, _context.Logger); 128evaluationResult.ItemExclusions.Report(_context.Logger); 136workspace = new ManagedCodeWorkspace(_context.Logger, runningProjectsManager); 164_context.Logger.LogDebug("Using Aspire process launcher."); 171_context.Logger.Log(MessageDescriptor.RuntimeProcessLauncherCreatedNotification); 219_context.Logger.LogDebug("File change: {Kind} '{Path}'.", change.Kind, change.Path); 226_context.Logger.Log(MessageDescriptor.WaitingForChanges); 256Logger = _context.Logger, 312startedWatching: () => _context.Logger.Log(MessageDescriptor.FixBuildError), 320_context.Logger.Log(MessageDescriptor.ProjectsRebuilt, updatesBuilder.ProjectsToRebuild.Count); 327_context.Logger.Log(MessageDescriptor.ProjectDependenciesDeployed, updatesBuilder.ProjectsToRedeploy.Count); 401startedWatching: () => _context.Logger.Log(MessageDescriptor.FixBuildError), 426_context.Logger.Log(MessageDescriptor.ReEvaluationCompleted); 510_context.Logger.Log(MessageDescriptor.Restarting); 537_context.Logger.LogInformation("Affected projects:"); 541_context.Logger.LogInformation(" {ProjectName}", projectName); 550_context.Logger.LogDebug("Restarting without prompt since dotnet-watch is running in non-interactive mode."); 554_context.Logger.LogDebug(" Project to restart: '{ProjectName}'", projectName); 569_context.Logger.Log(MessageDescriptor.ProjectChangeTriggeredReEvaluation, firstBuildFilePath); 595_context.Logger.Log(MessageDescriptor.FileAdditionTriggeredReEvaluation, filePath); 697_context.Logger.LogDebug("[{ProjectName}] {TargetName} target failed", failedInstance.GetDisplayName(), TargetName); 732_context.Logger.LogDebug("Deploying project dependency '{TargetPath}' from '{SourcePath}'", targetPath, sourcePath); 746_context.Logger.LogDebug("Copy failed: {Message}", e.Message); 764startedWatching: () => _context.Logger.Log(messageDescriptor), 777startedWatching: () => _context.Logger.Log(messageDescriptor), 814return !evaluationResult.ItemExclusions.IsExcluded(path, kind, _context.Logger); 828_context.Logger.Log(MessageDescriptor.IgnoringChangeInHiddenDirectory, containingHiddenDir, kind, path); 922_context.Logger.LogInformation(GetMessage(items, kind)); 996_context.Logger.Log(MessageDescriptor.BuildStartedNotification, projects); 1003_context.Logger.Log(MessageDescriptor.BuildCompletedNotification, (projects, success)); 1109_context.Logger.LogDebug("Selected device: {DeviceId}", selectedDevice); 1220_context.Logger.LogDebug("ComputeAvailableDevices target failed or returned no output."); 1237_context.Logger.Log(MessageDescriptor.NoDevicesAvailable); 1311var success = await _context.ProcessRunner.RunAsync(processSpec, _context.Logger, launchResult: null, cancellationToken) == 0;
Process\ProjectLauncher.cs (1)
21=> context.Logger;