
Logging in C# - .NET | Microsoft Learn
.NET supports high performance, structured logging via the ILogger API to help monitor application behavior and diagnose issues. Configure different logging providers to write logs to …
Logging in .NET - Code Samples | Microsoft Learn
Jun 23, 2023 · In addition to an overview, there are in-depth articles discussing logging providers, compile-time logging source generation, details for implementing a custom logging provider, …
Logging and tracing - .NET | Microsoft Learn
Sep 4, 2024 · Sometimes logging is also referred to as 'tracing', including in some of the older Windows and .NET APIs. In recent years, 'tracing' is more commonly used as an abbreviation …
High-performance logging - .NET | Microsoft Learn
Learn how to use LoggerMessage to create cacheable delegates that require fewer object allocations for high-performance logging scenarios.
Logging providers - .NET | Microsoft Learn
Oct 22, 2025 · Logging providers persist logs, except for the Console provider, which only displays logs as standard output. For example, the Azure Application Insights provider stores …
Compile-time logging source generation - .NET | Microsoft Learn
Oct 22, 2025 · Learn how to use the LoggerMessageAttribute and compile-time source generation for logging in .NET.
Logging in .NET and ASP.NET Core | Microsoft Learn
Sep 18, 2024 · Learn how to use the logging framework provided by the Microsoft.Extensions.Logging NuGet package.
Log buffering - .NET | Microsoft Learn
May 27, 2025 · Log buffering extends filtering capabilities by allowing you to capture and store logs temporarily. Rather than making an immediate emit-or-discard decision, buffering lets you …
Logging in C# - To a text file - Microsoft Q&A
Sep 29, 2023 · I am creating a console application and I understand that I need to use ILoggerFactory for logging purpose, but how can I get it to be written to a text file instead to …
Logging guidance for .NET library authors - .NET | Microsoft Learn
Mar 19, 2024 · Learn how to expose logging as a library author in .NET. Follow the guidance to ensure your library is correctly exposed to consumers.