Microsoft.Extensions.Logging Interop
We recognize that your apps (particularly .NET MAUI and Uno Platform), may have logging that occurs internally using Microsoft.Extensions.Logging. For this reason we've taken the time to put together a logging adapter that allows the logging output from the Microsoft.Extensions.Logging.ILogger to be passed through to the configured Prism Logging Providers that you have in your application. While the exact code may vary
You can use the Prism App Builder
public static class PrismStartup
{
public static void Configure(PrismAppBuilder builder)
{
builder.ConfigureLogging(logging => logging.AddPrismLogging());
}
}
Or alternatively you may also use the MAUI App Builder
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder.Logging.AddPrismLogging();
}
}