138 references to LogWarning
Aspire.Confluent.Kafka (4)
AspireKafkaConsumerExtensions.cs (2)
181logger.LogWarning("LogHandler is already set. Skipping... No logs will be written."); 205logger.LogWarning("StatisticsHandler is already set. Skipping... No metrics will be exposed.");
AspireKafkaProducerExtensions.cs (2)
181logger.LogWarning("LogHandler is already set. Skipping... No logs will be written."); 205logger.LogWarning("StatisticsHandler is already set. Skipping... No metrics will be exposed.");
Aspire.Dashboard (3)
DashboardWebApplication.cs (1)
325_logger.LogWarning("OTLP server is unsecured. Untrusted apps can send telemetry to the dashboard. For more information, visit https://go.microsoft.com/fwlink/?linkid=2267030");
Model\BrowserTimeProvider.cs (1)
32_logger.LogWarning("Couldn't find time zone '{TimeZone}'. Defaulting to UTC.", timeZone);
Model\Otlp\ApplicationsSelectHelpers.cs (1)
29logger.LogWarning(
Aspire.Hosting (1)
Dashboard\DashboardServiceHost.cs (1)
191_logger.LogWarning("Unexpectedly long wait for resource service URI ({Elapsed}).", elapsed);
Aspire.Hosting.Testing.Tests (1)
ResourceLoggerForwarderServiceTests.cs (1)
101resourceLogger.LogWarning("Test warning message");
BuildValidator (2)
LocalReferenceResolver.cs (1)
165_logger.LogWarning($@"Could not read MVID from ""{filePath}""");
Program.cs (1)
272logger.LogWarning($"\t{diff.AssemblyInfo.FilePath}");
CustomPolicyProvider (1)
Authorization\MinimumAgeAuthorizationHandler.cs (1)
29_logger.LogWarning("Evaluating authorization requirement for age >= {age}", requirement.Age);
Identity.ExternalClaims (5)
Pages\Account\Login.cshtml.cs (1)
88_logger.LogWarning("User account locked out.");
Pages\Account\LoginWith2fa.cshtml.cs (2)
87_logger.LogWarning("User with ID '{UserId}' account locked out.", user.Id); 92_logger.LogWarning("Invalid authenticator code entered for user with ID '{UserId}'.", user.Id);
Pages\Account\LoginWithRecoveryCode.cshtml.cs (2)
80_logger.LogWarning("User with ID '{UserId}' account locked out.", user.Id); 85_logger.LogWarning("Invalid recovery code entered for user with ID '{UserId}' ", user.Id);
Microsoft.AspNetCore.Authentication.Negotiate (3)
Internal\LdapAdapter.cs (3)
59logger.LogWarning($"More than one response received for query: {filter} with distinguished name: {distinguishedName}"); 97logger.LogWarning($"No response received for query: {filter} with distinguished name: {distinguishedName}"); 113logger.LogWarning($"More than one response received for query: {filter} with distinguished name: {distinguishedName}");
Microsoft.AspNetCore.FunctionalTests (10)
WebHostFunctionalTests.cs (10)
51logger.LogWarning(response.ToString()); 52logger.LogWarning(responseText); 76logger.LogWarning(response.ToString()); 77logger.LogWarning(responseText); 100logger.LogWarning(response.ToString()); 101logger.LogWarning(responseText); 177Logger.LogWarning(response.ToString()); 178Logger.LogWarning(responseText); 197logger.LogWarning(response.ToString()); 198logger.LogWarning(responseText);
Microsoft.AspNetCore.Hosting (1)
WebHostBuilder.cs (1)
184logger.LogWarning($"The assembly {assemblyName} was specified multiple times. Hosting startup assemblies should only be specified once.");
Microsoft.AspNetCore.Identity.UI (2)
Areas\Identity\Pages\V4\Account\LoginWithRecoveryCode.cshtml.cs (1)
120_logger.LogWarning("User account locked out.");
Areas\Identity\Pages\V5\Account\LoginWithRecoveryCode.cshtml.cs (1)
120_logger.LogWarning("User account locked out.");
Microsoft.AspNetCore.InternalTesting (4)
AssemblyTestLog.cs (4)
125_globalLogger.LogWarning($"Test name {testName} is too long. Please shorten test name."); 137_globalLogger.LogWarning($"To prevent long paths test name was shortened to {testName}."); 144_globalLogger.LogWarning($"Output log file {testOutputFile} already exists. Please try to keep log file names unique."); 152_globalLogger.LogWarning($"To resolve log file collision, the enumerated file {testOutputFile} will be used.");
Microsoft.AspNetCore.Server.IIS (2)
Core\IISHttpContext.FeatureCollection.cs (1)
459_logger.LogWarning(CoreStrings.MaxRequestLimitWarning);
Core\IISHttpServer.cs (1)
89_logger.LogWarning(CoreStrings.MaxRequestLimitWarning);
Microsoft.AspNetCore.Server.IntegrationTesting (10)
Common\ProcessLoggingExtensions.cs (1)
25logger.LogWarning($"{prefix} stderr: {{line}}", dataArgs.Data);
Common\RetryHelper.cs (3)
35logger.LogWarning("Retry count {retryCount}..", retry + 1); 41logger.LogWarning("Retrying a service unavailable error."); 58logger.LogWarning("Failed to complete the request : {0}.", exception.Message);
Deployers\ApplicationDeployer.cs (4)
88Logger.LogWarning( 125Logger.LogWarning("Unable to terminate the host process with process Id '{processId}", hostProcess.Id); 134Logger.LogWarning("Host process already exited or never started successfully."); 158Logger.LogWarning("User cleanup code failed with exception : {exception}", exception.Message);
Deployers\NginxDeployer.cs (1)
182Logger.LogWarning("Unable to find nginx PID file: {pidFile}", pidFile);
PublishedApplication.cs (1)
24e => _logger.LogWarning($"Failed to delete directory : {e.Message}"),
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (3)
IISDeployer.cs (1)
327Logger.LogWarning($"Name of redirected file: {redirectedFilePath}");
IISExpressDeployer.cs (2)
424Logger.LogWarning("Failed to delete '{config}'. Exception : {exception}", DeploymentParameters.ServerConfigLocation, exception.Message); 565Logger.LogWarning($"IISExpress exit code is non-zero after graceful shutdown. Exit code: {hostProcess.ExitCode}");
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\AddressBinder.cs (1)
199context.Logger.LogWarning(CoreStrings.OverridingWithKestrelOptions, string.Join(", ", _originalAddresses));
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
ServerLogScope.cs (1)
42_scopeLogger.LogWarning("Server log has no data.");
Microsoft.AspNetCore.SpaProxy (2)
SpaProxyLaunchManager.cs (2)
251_logger.LogWarning($"The SPA process shutdown script '{stopProcess?.Id}' failed to start. The SPA proxy might" + 311_logger.LogWarning($"The SPA process shutdown script '{stopProcess?.Id}' failed to start. The SPA proxy might" +
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Autobahn\AutobahnTester.cs (1)
91_logger.LogWarning("Non-successful response when pinging {url}: {statusCode} {reasonPhrase}", deployment.ApplicationBaseUri, resp.StatusCode, resp.ReasonPhrase);
Microsoft.CodeAnalysis.LanguageServer (4)
HostWorkspace\FileWatching\DelegatingFileChangeWatcher.cs (1)
40loggerFactory.CreateLogger<DelegatingFileChangeWatcher>().LogWarning("We are unable to use LSP file watching; falling back to our in-process watcher.");
HostWorkspace\LanguageServerWorkspaceFactory.cs (1)
76_logger.LogWarning($"Solution-level analyzer at {analyzerPath} could not be found.");
HostWorkspace\ProjectDependencyHelper.cs (1)
56logger.LogWarning(string.Format(LanguageServerResources.Project_0_has_unresolved_dependencies, projectFileInfo.FilePath));
Logging\LspServiceLogger.cs (1)
37public override void LogWarning(string message, params object[] @params) => _hostLogger.LogWarning(message, @params);
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\BuildHostProcessManager.cs (2)
59_logger?.LogWarning($"An installation of Mono could not be found; {projectOrSolutionFilePath} will be loaded with the .NET Core SDK and may encounter errors."); 73_logger?.LogWarning($"An installation of Visual Studio or the Build Tools for Visual Studio could not be found; {projectOrSolutionFilePath} will be loaded with the .NET Core SDK and may encounter errors.");
Microsoft.Extensions.Diagnostics.Testing.Tests (5)
Logging\FakeLogCollectorTests.cs (4)
52logger.LogWarning("Hello world!"); 94logger.LogWarning("Hello world!"); 133logger.LogWarning("Hello world!"); 165logger.LogWarning("Hello world!");
Logging\FakeLoggerTests.cs (1)
213logger.LogWarning("M3");
Microsoft.Extensions.Hosting.Testing.Tests (1)
HostingFakesExtensionsTests.cs (1)
322logger.LogWarning(message);
Microsoft.Maui (1)
Hosting\Dispatching\AppHostBuilderExtensions.cs (1)
65 services.CreateLogger<Dispatcher>()?.LogWarning("Replaced an existing DispatcherProvider with one from the service provider.");
Microsoft.Maui.Controls (34)
BindableObject.cs (7)
89 Application.Current?.FindMauiContext()?.CreateLogger<BindableObject>()?.LogWarning($"Cannot set the BindableProperty \"{property.PropertyName}\" because it is readonly."); 103 Application.Current?.FindMauiContext()?.CreateLogger<BindableObject>()?.LogWarning($"Cannot set the BindableProperty \"{property.PropertyName}\" because it is readonly."); 298 Application.Current?.FindMauiContext()?.CreateLogger<BindableObject>()?.LogWarning($"Cannot set the a OneWay Binding \"{targetProperty.PropertyName}\" because it is readonly."); 493 Application.Current?.FindMauiContext()?.CreateLogger<BindableObject>()?.LogWarning($"Cannot set the BindableProperty \"{property.PropertyName}\" because it is readonly."); 521 Application.Current?.FindMauiContext()?.CreateLogger<BindableObject>()?.LogWarning($"Cannot set the BindableProperty \"{property.PropertyName}\" because it is readonly."); 562 Application.Current?.FindMauiContext()?.CreateLogger<BindableObject>()?.LogWarning($"Cannot convert {value} to type '{property.ReturnType}'"); 568 Application.Current?.FindMauiContext()?.CreateLogger<BindableObject>()?.LogWarning($"Value is an invalid value for {property.PropertyName}");
BindablePropertyConverter.cs (2)
84 Application.Current?.FindMauiContext()?.CreateLogger<BindablePropertyConverter>()?.LogWarning("Can't resolve properties with xml namespace prefix."); 90 Application.Current?.FindMauiContext()?.CreateLogger<BindablePropertyConverter>()?.LogWarning($"Can't resolve {value}. Accepted syntax is Type.PropertyName.");
BindingBase.cs (2)
157 Application.Current?.FindMauiContext()?.CreateLogger<BindingBase>()?.LogWarning("FormatException"); 172 Application.Current?.FindMauiContext()?.CreateLogger<BindingBase>()?.LogWarning("FormatException");
Element\Element.cs (3)
300 .LogWarning($"The ParentOverride on {this} has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui"); 355 .LogWarning($"The RealParent on {this} has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui"); 409 Application.Current?.FindMauiContext()?.CreateLogger<Element>()?.LogWarning($"{this} is already a child of {element}. Remove {this} from {element} before adding to {value}.");
Interactivity\EventTrigger.cs (1)
85 Application.Current?.FindMauiContext()?.CreateLogger<EventTrigger>()?.LogWarning("Cannot attach EventTrigger to {Type}.{Event}. Check if the handler exists and if the signature is right.", bindable.GetType(), Event);
ListView\ListView.cs (2)
638 Application.Current?.FindMauiContext()?.CreateLogger<ListView>()?.LogWarning("GroupHeaderTemplate and GroupDisplayBinding cannot be set at the same time, setting GroupHeaderTemplate to null"); 648 Application.Current?.FindMauiContext()?.CreateLogger<ListView>()?.LogWarning("GroupHeaderTemplate and GroupDisplayBinding cannot be set at the same time, setting GroupDisplayBinding to null");
MergedStyle.cs (1)
49 Application.Current?.FindMauiContext()?.CreateLogger<Style>()?.LogWarning("Style TargetType {FullName} is not compatible with element target type {TargetType}", value.TargetType.FullName, TargetType);
NavigationPage\NavigationPage.cs (1)
881 Application.Current?.FindMauiContext()?.CreateLogger<NavigationPage>()?.LogWarning("RemovePage called for CurrentPage object. This can result in undesired behavior, consider calling PopAsync instead.");
NavigationPage\NavigationPage.Legacy.cs (1)
241 Application.Current?.FindMauiContext()?.CreateLogger<NavigationPage>()?.LogWarning("RemovePage called for CurrentPage object. This can result in undesired behavior, consider calling PopAsync instead.");
RadioButton\RadioButton.cs (1)
638 Application.Current?.FindMauiContext()?.CreateLogger<RadioButton>()?.LogWarning("Warning - {RuntimePlatform} does not support View as the {PropertyName} property of RadioButton; the return value of the ToString() method will be displayed instead.", DeviceInfo.Platform, ContentProperty.PropertyName);
Shell\ShellSection.cs (1)
490 Application.Current?.FindMauiContext()?.CreateLogger<ShellSection>()?.LogWarning("Failed to Create Content For: {route}", route);
StreamWrapper.cs (1)
99 .LogWarning("Could not retrieve {Uri}, status code {StatusCode}", uri, response.StatusCode);
SwipeView\SwipeItems.cs (1)
165 ?.LogWarning($"{e} is already part of {e.Parent}. Remove from {e.Parent} to avoid inconsistent behavior.");
TypeConversionHelper.cs (1)
173 Application.Current?.FindMauiContext()?.CreateLogger(nameof(TypeConversionHelper))?.LogWarning(
Visuals\VisualMarker.cs (2)
32 logger?.LogWarning("Material needs to be registered on {RuntimePlatform} by calling FormsMaterial.Init() after the Microsoft.Maui.Controls.Forms.Init method call.", DeviceInfo.Platform); 34 logger?.LogWarning("Material is currently not support on {RuntimePlatform}.", DeviceInfo.Platform);
Visuals\VisualTypeConverter.cs (5)
86 Application.Current?.FindMauiContext()?.CreateLogger<IVisual>()?.LogWarning("Cannot scan assembly {assembly} for Visual types.", assembly.FullName); 90 Application.Current?.FindMauiContext()?.CreateLogger<IVisual>()?.LogWarning("Unable to load a dependent assembly for {assembly}. It cannot be scanned for Visual types.", assembly.FullName); 94 Application.Current?.FindMauiContext()?.CreateLogger<IVisual>()?.LogWarning("Unable to load a dependent assembly for {assembly}. Types cannot be loaded.", assembly.FullName); 146 Application.Current?.FindMauiContext()?.CreateLogger<IVisual>()?.LogWarning("Unable to register {visualType} please add a public default constructor", visualType.ToString()); 165 Application.Current?.FindMauiContext()?.CreateLogger<IVisual>()?.LogWarning(
Xaml\Diagnostics\BindingDiagnostics.cs (2)
18 Application.Current?.FindMauiContext()?.CreateLogger<BindingDiagnostics>()?.LogWarning(message, messageArgs); 24 Application.Current?.FindMauiContext()?.CreateLogger<BindingDiagnostics>()?.LogWarning(message, messageArgs);
Microsoft.Maui.Controls.Compatibility (10)
iOS\Platform.cs (2)
29 Forms.MauiContext?.CreateLogger("Renderer")?.LogWarning("{bindable} already has a renderer attached to it: {oldvalue}. Please figure out why and then fix it.", bindable, oldvalue); 225 Application.Current?.FindMauiContext()?.CreateLogger<Platform>()?.LogWarning(
iOS\Renderers\ImageElementManager.cs (1)
288 Forms.MauiContext?.CreateLogger<ImageRenderer>()?.LogWarning("Image load cancelled");
iOS\Renderers\ImageRenderer.cs (6)
136 Forms.MauiContext?.CreateLogger<FileImageSourceHandler>()?.LogWarning("Could not find image: {imagesource}", imagesource); 147 Forms.MauiContext?.CreateLogger<FileImageSourceHandler>()?.LogWarning("Could not find image: {imagesource}", imagesource); 176 Forms.MauiContext?.CreateLogger<StreamImagesourceHandler>()?.LogWarning("Could not find image: {streamsource}", streamsource); 187 Forms.MauiContext?.CreateLogger<FileImageSourceHandler>()?.LogWarning("Could not find image: {imagesource}", imagesource); 214 Forms.MauiContext?.CreateLogger<ImageLoaderSourceHandler>()?.LogWarning("Could not load image: {imagesource}", imagesource); 227 Forms.MauiContext?.CreateLogger<FileImageSourceHandler>()?.LogWarning("Could not find image: {imagesource}", imagesource);
iOS\Renderers\SwipeViewRenderer.cs (1)
709 Forms.MauiContext?.CreateLogger<SwipeViewRenderer>()?.LogWarning("Cannot load SwipeItem Icon");
ServerComparison.FunctionalTests (24)
HelloWorldTest.cs (2)
78logger.LogWarning(response.ToString()); 79logger.LogWarning(responseText);
NtlmAuthenticationTest.cs (2)
101logger.LogWarning(response.ToString()); 102logger.LogWarning(responseText);
ResponseCompressionTests.cs (6)
154logger.LogWarning(response.ToString()); 155logger.LogWarning(responseText); 179logger.LogWarning(response.ToString()); 180logger.LogWarning(responseText); 212logger.LogWarning(response.ToString()); 213logger.LogWarning(responseText);
ResponseTests.cs (14)
116logger.LogWarning(response.ToString()); 117logger.LogWarning(responseText); 145logger.LogWarning(response.ToString()); 146logger.LogWarning(responseText); 165logger.LogWarning(response.ToString()); 166logger.LogWarning(responseText); 190logger.LogWarning(response.ToString()); 191logger.LogWarning(responseText); 215logger.LogWarning(response.ToString()); 216logger.LogWarning(responseText); 240logger.LogWarning(response.ToString()); 241logger.LogWarning(responseText); 260logger.LogWarning(response.ToString()); 261logger.LogWarning(responseText);