{"repo":"NLog/NLog.Targets.MauiLog","free":true,"listed":false,"github":"https://github.com/NLog/NLog.Targets.MauiLog","clone":"git clone https://github.com/NLog/NLog.Targets.MauiLog.git","description":"NLog MauiLog Target for writing to Apple Unified Logging OSLog / Android.Util.Log for LogCat","language":"C#","stars":21,"topics":["csharp","dotnet","maui","netstandard","nlog","nlog-target","xamarin","xamarin-android","xamarin-ios","logcat"],"license":"BSD-3-Clause","category":"mobile-apps","readme_excerpt":"NLog.Targets.MauiLog NLog Target for debugging on MAUI / Xamarin Mobile Platforms using the native logging systems: - Android — Android.Util.Log → view in Logcat - iOS / macOS — OSLog → view in Xcode Console or Console.app - Other platforms — System.Diagnostics.Debugger.Log → view in the debugger output 1. Install NLog Install the following NuGet packages: Use the package versions appropriate for your .NET version (Use ver. 10 for NET10, and ver. 8 for NET8 etc.). 2. Configure NLog NLog integrates with the built-in Microsoft.Extensions.Logging infrastructure. Application code continues to use ILogger , while NLog handles log routing, formatting, and writing to configured targets. Configure NLog in MauiProgram.cs : 3. Start logging NLog is now configured and receives log events from Microsoft.Extensions.Logging. Application code can continue using ILogger as usual. You are not required to use the ILogger , if you prefer using NLog.LogManager.GetLogger(....) in the application. See also Logging Unhandled Exceptions Alternative configuration The example above uses the Fluent Configuration API. NLog also supports using configuration files like NLog.config or appsettings.json . When switching from the Fluent Configuration API to loading a aconfiguration file, remove the LoadConfiguration(...) call from the setup. When using configuration files, explicitly register the MauiLog extension: This explicit registration is important when using trimming or Native AOT. If an NLog extension","default_branch":null,"files":null,"tree":[],"storefront":"/r/NLog","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/NLog/NLog.Targets.MauiLog/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}