4 writes to Logger
dotnet-watch (1)
Program.cs (1)
215Logger = logger,
dotnet-watch.Tests (2)
Watch\BuildEvaluatorTests.cs (1)
24Logger = NullLogger.Instance,
Watch\NoRestoreTests.cs (1)
22Logger = NullLogger.Instance,
Microsoft.DotNet.HotReload.Watch.Aspire (1)
DotNetWatchLauncher.cs (1)
55Logger = logger,
60 references to Logger
dotnet-watch (16)
Watch\BuildEvaluator.cs (6)
53_context.Logger.LogDebug("Cannot use --no-restore since msbuild project files have changed."); 57_context.Logger.LogDebug("Modifying command to use --no-restore"); 80_context.Logger.LogDebug("Evaluating dotnet-watch file set."); 105_context.Logger, 107startedWatching: () => _context.Logger.Log(MessageDescriptor.FixBuildError), 131_context.Logger.LogDebug("Re-evaluation needed due to changes in '{Path}'.", file);
Watch\DotNetWatcher.cs (10)
21context.Logger.LogDebug("MSBuild incremental optimizations suppressed."); 33context.Logger.LogError("Failed to find a list of files to watch"); 42var projectMap = new ProjectNodeMap(evaluationResult.ProjectGraph, context.Logger); 43staticFileHandler = new StaticFileHandler(context.Logger, projectMap, context.BrowserRefreshServerFactory); 47context.Logger.LogDebug("Unable to determine if this project is a webapp."); 91using var fileSetWatcher = new FileWatcher(context.Logger, context.EnvironmentOptions); 95var processTask = context.ProcessRunner.RunAsync(processSpec, context.Logger, launchResult: null, combinedCancellationSource.Token); 100context.Logger.Log(MessageDescriptor.WaitingForChanges); 138startedWatching: () => context.Logger.Log(MessageDescriptor.WaitingForFileChangeBeforeRestarting), 146context.Logger.LogInformation("File changed: {Path}", changedFile.Value.Item.FilePath);
Microsoft.DotNet.HotReload.Watch (44)
AppModels\HotReloadAppModel.cs (4)
29context.Logger.Log(MessageDescriptor.ApplicationKind_BlazorWebAssembly); 37context.Logger.Log(MessageDescriptor.ApplicationKind_BlazorHosted, projectNode.ProjectInstance.FullPath, clientProject.ProjectInstance.FullPath); 41context.Logger.Log(MessageDescriptor.ApplicationKind_WebApplication); 45context.Logger.Log(MessageDescriptor.ApplicationKind_Default);
HotReload\HotReloadDotNetWatcher.cs (39)
39context.Logger.LogDebug("DOTNET_WATCH_RESTART_ON_RUDE_EDIT = 'true'. Will restart without prompt."); 42_rudeEditRestartPrompt = new RestartPrompt(context.Logger, consoleInput, noPrompt ? true : null); 55_context.Logger.Log(MessageDescriptor.HotReloadEnabled); 56_context.Logger.Log(MessageDescriptor.PressCtrlRToRestart); 63_context.Logger.Log(source.IsCancellationRequested ? MessageDescriptor.RestartInProgress : MessageDescriptor.RestartRequested); 68using var fileWatcher = new FileWatcher(_context.Logger, _context.EnvironmentOptions); 112_context.Logger.LogDebug("Using Aspire process launcher."); 115var projectMap = new ProjectNodeMap(evaluationResult.ProjectGraph, _context.Logger); 116compilationHandler = new CompilationHandler(_context.Logger, _context.ProcessRunner); 117var scopedCssFileHandler = new ScopedCssFileHandler(_context.Logger, _context.BuildLogger, projectMap, _context.BrowserRefreshServerFactory, _context.Options, _context.EnvironmentOptions); 119evaluationResult.ItemExclusions.Report(_context.Logger); 190_context.Logger.LogDebug("File change: {Kind} '{Path}'.", change.Kind, change.Path); 197_context.Logger.Log(MessageDescriptor.WaitingForChanges); 251_context.Logger.LogWarning("Project '{Name}' does not support Hot Reload and must be rebuilt.", rootProject.GetDisplayName()); 288_context.Logger.LogInformation("Affected projects:"); 292_context.Logger.LogInformation(" {ProjectName}", projectName); 301_context.Logger.LogDebug("Restarting without prompt since dotnet-watch is running in non-interactive mode."); 305_context.Logger.LogDebug(" Project to restart: '{ProjectName}'", projectName); 362startedWatching: () => _context.Logger.Log(MessageDescriptor.FixBuildError), 370_context.Logger.Log(MessageDescriptor.ProjectsRebuilt, projectsToRebuild.Length); 377_context.Logger.Log(MessageDescriptor.ProjectDependenciesDeployed, projectsToRedeploy.Length); 397_context.Logger.Log(MessageDescriptor.ProjectsRestarted, projectsToRestart.Length); 400_context.Logger.Log(MessageDescriptor.HotReloadChangeHandled, stopwatch.ElapsedMilliseconds); 449_context.Logger.Log(fileAdded ? MessageDescriptor.FileAdditionTriggeredReEvaluation : MessageDescriptor.ProjectChangeTriggeredReEvaluation); 470_context.Logger.Log(MessageDescriptor.ReEvaluationCompleted); 566var buildReporter = new BuildReporter(_context.Logger, _context.Options, _context.EnvironmentOptions); 593_context.Logger.LogDebug("{TargetName} target failed", targetName); 608_context.Logger.LogDebug("Deploying project dependency '{TargetPath}' from '{SourcePath}'", targetPath, sourcePath); 622_context.Logger.LogDebug("Copy failed: {Message}", e.Message); 640startedWatching: () => _context.Logger.Log(MessageDescriptor.WaitingForFileChangeBeforeRestarting), 650startedWatching: () => _context.Logger.Log(MessageDescriptor.WaitingForFileChangeBeforeRestarting), 687return !evaluationResult.ItemExclusions.IsExcluded(path, kind, _context.Logger); 701_context.Logger.Log(MessageDescriptor.IgnoringChangeInHiddenDirectory, containingHiddenDir, kind, path); 795_context.Logger.LogInformation(GetMessage(items, kind)); 829_context.Logger.LogInformation("Evaluating projects ..."); 841_context.Logger.LogInformation("Evaluation completed in {Time}s.", stopwatch.Elapsed.TotalSeconds.ToString("0.0")); 850_context.Logger, 852startedWatching: () => _context.Logger.Log(MessageDescriptor.FixBuildError), 885var success = await _context.ProcessRunner.RunAsync(processSpec, _context.Logger, launchResult: null, cancellationToken) == 0;
Process\ProjectLauncher.cs (1)
21=> context.Logger;