1 write to _logger
Microsoft.TemplateSearch.Common (1)
Providers\NuGetMetadataSearchProvider.cs (1)
45_logger = _environmentSettings.Host.LoggerFactory.CreateLogger<NuGetMetadataSearchProvider>();
24 references to _logger
Microsoft.TemplateSearch.Common (24)
Providers\NuGetMetadataSearchProvider.cs (24)
71_logger.LogDebug("Initializing search cache..."); 73_searchCache = TemplateSearchCache.FromJObject(_environmentSettings.Host.FileSystem.ReadObject(metadataLocation), _logger, _additionalDataReaders); 74_logger.LogDebug("Search cache was successfully setup."); 78_logger.LogDebug("Retrieved {0} packages matching package search criteria.", filteredPackages.Count()); 85_logger.LogDebug("Retrieved {0} packages matching template search criteria.", matchingTemplates.Count); 96_logger.LogDebug("{0} is set to {1}, the search file will be loaded from this location instead.", LocalSourceSearchFileOverrideEnvVar, localOverridePath); 101_logger.LogDebug("Failed to load search cache from defined location: file {0} does not exist.", localOverridePath); 106_logger.LogDebug("Search cache file location: {0}.", preferredMetadataLocation); 110_logger.LogDebug("{0} is set to {1}, downloading of the search cache will be skipped.", UseLocalSearchFileIfPresentEnvVar, useLocalSearchFile); 118_logger.LogDebug("Failed to load existing search cache: file {0} does not exist.", preferredMetadataLocation); 124_logger.LogDebug("Updating the search cache..."); 137_logger.LogDebug("Checking the age of search cache..."); 142_logger.LogDebug("The search cache was updated on {0}", lastWriteTimeUtc); 145_logger.LogDebug("The search cache was updated less than {0} hours ago, the update will be skipped.", CachedFileValidityInHours); 148_logger.LogDebug("The search cache was updated more than {0} hours ago, and needs to be updated.", CachedFileValidityInHours); 151_logger.LogDebug("The search cache file {0} doesn't exist, and needs to be created.", metadataFileTargetLocation); 168_logger.LogDebug("Retrieving cache file from {0} ...", searchMetadataUri); 186_logger.LogDebug(GetResponseDetails(response)); 195_logger.LogDebug("Search cache file was successfully downloaded to {0}.", searchMetadataFileLocation); 202_logger.LogDebug("ETag {0} was written to {1}.", etagValues.First(), etagFileLocation); 208_logger.LogDebug("Search cache file is not modified, updating the last modified date to now."); 219_logger.LogDebug("Failed to download {0}, details: {1}", searchMetadataUri, e); 226_logger.LogDebug("Failed to update search cache, {0} will be used instead.", searchMetadataFileLocation); 231_logger.LogDebug("Failed to update search cache from all known locations.");