3 writes to Logger
dotnet-watch (1)
Program.cs (1)
236Logger = logger,
dotnet-watch.Tests (2)
Watch\BuildEvaluatorTests.cs (1)
22Logger = NullLogger.Instance,
Watch\NoRestoreTests.cs (1)
20Logger = NullLogger.Instance,
58 references to Logger
dotnet-watch (58)
HotReload\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 (37)
38context.Logger.LogDebug("DOTNET_WATCH_RESTART_ON_RUDE_EDIT = 'true'. Will restart without prompt."); 41_rudeEditRestartPrompt = new RestartPrompt(context.Logger, consoleInput, noPrompt ? true : null); 49_context.Logger.Log(MessageDescriptor.HotReloadEnabled); 50_context.Logger.Log(MessageDescriptor.PressCtrlRToRestart); 57_context.Logger.Log(source.IsCancellationRequested ? MessageDescriptor.RestartInProgress : MessageDescriptor.RestartRequested); 62using var fileWatcher = new FileWatcher(_context.Logger, _context.EnvironmentOptions); 107_context.Logger.LogDebug("Using Aspire process launcher."); 110var projectMap = new ProjectNodeMap(evaluationResult.ProjectGraph, _context.Logger); 111compilationHandler = new CompilationHandler(_context.LoggerFactory, _context.Logger, _context.ProcessRunner); 112var scopedCssFileHandler = new ScopedCssFileHandler(_context.Logger, _context.BuildLogger, projectMap, _context.BrowserRefreshServerFactory, _context.Options, _context.EnvironmentOptions); 114evaluationResult.ItemExclusions.Report(_context.Logger); 188_context.Logger.LogDebug("File change: {Kind} '{Path}'.", change.Kind, change.Path); 249_context.Logger.LogWarning("Project '{Name}' does not support Hot Reload and must be rebuilt.", rootProject.GetDisplayName()); 286_context.Logger.LogInformation("Affected projects:"); 290_context.Logger.LogInformation(" {ProjectName}", projectName); 299_context.Logger.LogDebug("Restarting without prompt since dotnet-watch is running in non-interactive mode."); 303_context.Logger.LogDebug(" Project to restart: '{ProjectName}'", projectName); 356startedWatching: () => _context.Logger.Log(MessageDescriptor.FixBuildError), 364_context.Logger.Log(MessageDescriptor.ProjectsRebuilt, projectsToRebuild.Length); 371_context.Logger.Log(MessageDescriptor.ProjectDependenciesDeployed, projectsToRedeploy.Length); 403_context.Logger.Log(MessageDescriptor.ProjectsRestarted, projectsToRestart.Length); 406_context.Logger.Log(MessageDescriptor.HotReloadChangeHandled, stopwatch.ElapsedMilliseconds); 455_context.Logger.Log(fileAdded ? MessageDescriptor.FileAdditionTriggeredReEvaluation : MessageDescriptor.ProjectChangeTriggeredReEvaluation); 476_context.Logger.Log(MessageDescriptor.ReEvaluationCompleted); 573var buildReporter = new BuildReporter(_context.Logger, _context.Options, _context.EnvironmentOptions); 600_context.Logger.LogDebug("{TargetName} target failed", targetName); 615_context.Logger.LogDebug("Deploying project dependency '{TargetPath}' from '{SourcePath}'", targetPath, sourcePath); 629_context.Logger.LogDebug("Copy failed: {Message}", e.Message); 647startedWatching: () => _context.Logger.Log(MessageDescriptor.WaitingForFileChangeBeforeRestarting), 657startedWatching: () => _context.Logger.Log(MessageDescriptor.WaitingForFileChangeBeforeRestarting), 694return !evaluationResult.ItemExclusions.IsExcluded(path, kind, _context.Logger); 708_context.Logger.Log(MessageDescriptor.IgnoringChangeInHiddenDirectory, containingHiddenDir, kind, path); 793_context.Logger.Log(MessageDescriptor.WaitingForChanges 808_context.Logger.LogInformation(GetMessage(items, kind)); 858_context.Logger, 860startedWatching: () => _context.Logger.Log(MessageDescriptor.FixBuildError), 888var exitCode = await _context.ProcessRunner.RunAsync(processSpec, _context.Logger, launchResult: null, cancellationToken);
Process\ProjectLauncher.cs (1)
21=> context.Logger;
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);