17 references to CreateLogger
Microsoft.Maui (11)
Fonts\FileSystemEmbeddedFontLoader.cs (1)
77 _serviceProvider?.CreateLogger<EmbeddedFontLoader>()?.LogWarning(ex, "Unable copy font {Font} to local file system.", font.FontName);
Fonts\FontRegistrar.cs (1)
71 _serviceProvider?.CreateLogger<FontRegistrar>()?.LogWarning(ex, "Unable to load font '{Font}'.", font);
Handlers\Application\ApplicationHandler.cs (1)
60 _logger ??= MauiContext?.Services.CreateLogger<ApplicationHandler>();
Hosting\Dispatching\AppHostBuilderExtensions.cs (1)
65 services.CreateLogger<Dispatcher>()?.LogWarning("Replaced an existing DispatcherProvider with one from the service provider.");
Hosting\ImageSources\ImageSourcesMauiAppBuilderExtensions.cs (4)
16 services.AddService<IFileImageSource>(svcs => new FileImageSourceService(svcs.CreateLogger<FileImageSourceService>())); 17 services.AddService<IFontImageSource>(svcs => new FontImageSourceService(svcs.GetRequiredService<IFontManager>(), svcs.CreateLogger<FontImageSourceService>())); 18 services.AddService<IStreamImageSource>(svcs => new StreamImageSourceService(svcs.CreateLogger<StreamImageSourceService>())); 19 services.AddService<IUriImageSource>(svcs => new UriImageSourceService(svcs.CreateLogger<UriImageSourceService>()));
Hosting\ServiceProviderExtensions.cs (1)
11 context.Services.CreateLogger<T>();
ImageSources\ImageSourceExtensions.cs (1)
26 .FireAndForget(mauiContext.Services.CreateLogger<IImageSource>(), nameof(LoadImage));
TaskExtensions.cs (1)
58 elementHandler?.MauiContext?.Services?.CreateLogger<T>();
Microsoft.Maui.Controls (6)
Hosting\AppHostBuilderExtensions.cs (4)
226 services.AddService<FileImageSource>(svcs => new FileImageSourceService(svcs.CreateLogger<FileImageSourceService>())); 227 services.AddService<FontImageSource>(svcs => new FontImageSourceService(svcs.GetRequiredService<IFontManager>(), svcs.CreateLogger<FontImageSourceService>())); 228 services.AddService<StreamImageSource>(svcs => new StreamImageSourceService(svcs.CreateLogger<StreamImageSourceService>())); 229 services.AddService<UriImageSource>(svcs => new UriImageSourceService(svcs.CreateLogger<UriImageSourceService>()));
Platform\ModalNavigationManager\ModalNavigationManager.cs (2)
99 var logger = _window.FindMauiContext(true)?.Services?.CreateLogger<ModalNavigationManager>(); 105 var logger = _window.FindMauiContext(true)?.Services?.CreateLogger<ModalNavigationManager>();