HomeiOS DevelopmentLogging from .NET Maui to iOS not working utilizing NLog.Targets.MauiLog

Logging from .NET Maui to iOS not working utilizing NLog.Targets.MauiLog


I am writing a Maui app in Visible Studio, primarily for iOS, and I need to implement logging.

I’ve arrange NLog.Targets.MauiLog primarily based on the readme right here: https://github.com/NLog/NLog.Targets.MauiLog

builder.Logging.ClearProviders();
builder.Logging.AddNLog();

var logger = LogManager.Setup()
                .RegisterMauiLog()
                .LoadConfiguration(c => c.ForLogger().FilterMinLevel(NLog.LogLevel.Information).WriteToMauiLog())
                .GetCurrentClassLogger();

logger.Information("App Began");

I’ve printed the app utilizing TestFlight, and may see realtime logging from the iPhone utilizing 3uTools or iTools purposes.

Nonetheless I don’t see the log “App Began” from my app. Am I doing one thing unsuitable with the logging, or am I wanting within the unsuitable place to see the logs?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments