How to use Custom Logging in C# Curtis Chau Updated:August 19, 2025 Download IronPDF NuGet Download DLL Download Windows Installer Start Free Trial Copy for LLMs Copy for LLMs Copy page as Markdown for LLMs Open in ChatGPT Ask ChatGPT about this page Open in Gemini Ask Gemini about this page Open in Grok Ask Grok about this page Open in Perplexity Ask Perplexity about this page Share Share on Facebook Share on X (Twitter) Share on LinkedIn Copy URL Email article Unlock the power of custom logging in your C# applications with our step-by-step tutorial using IronPDF, and gain valuable insights into your PDF generation processes by watching now! more... In this tutorial, we explore how to implement custom logging in C# applications using IronPDF. First, ensure IronPDF is installed via the NuGet Package Manager.Start by configuring IronPDF to use custom logging by setting the logging mode of the IronSoftware.Logger to custom. Instantiate a custom logger class and assign it to the custom logger property. This custom logger class implements the ILogger interface from Microsoft.Extensions.Logging. The constructor requires a category name parameter, and the BeginScope method returns null, as scope functionality is not needed here. The IsEnabled method always returns true, ensuring logging is active at all log levels. The core logic resides in the Log method, which processes parameters like log level, event ID, state, exception, and formatter. This method can be customized to direct logs to various destinations, such as files or databases.After setting up the custom logging, render a PDF from a URL using IronPDF to view log details. The generated log provides insights into PDF generation processes, including progress, errors, warnings, and performance metrics.By following these steps, you can effectively implement custom logging in your C# applications using IronPDF. Don't forget to subscribe for more tutorials from Iron Software and try IronPDF by signing up for a trial on their website. Experience the software's capabilities firsthand by downloading and installing the package.
Updated March 17, 2026 How to Access All PDF DOM Objects Using IronPDF in C# | IronPDF This video tutorial demonstrates how to convert an entire HTML project into a PDF using IronPDF. Perfect for developers, it simplifies the process, allowing you to generate PDFs directly from HTML packaged in a ZIP file, ensuring accurate rendering and easy integration. Read More
Updated March 17, 2026 How to Embed Images with Data URIs in C# | IronPDF This video tutorial demonstrates how to convert HTML content, along with its assets like CSS and images, from a ZIP file into a PDF format. It provides a step-by-step guide to extract and convert the contents effectively, making it ideal for anyone looking to streamline their document management process. Read More
Updated March 17, 2026 How to Render HTML ZIP File to PDF in C# | IronPDF This video tutorial guides you through the process of converting HTML content from a ZIP archive into a PDF using C# and IronPDF. By the end of the tutorial, you'll be able to efficiently handle HTML to PDF conversions directly within your C# applications, optimizing your workflow. Read More
Updated March 17, 2026 How to Transform PDF Pages Using IronPDF in C# | IronPDF This video tutorial provides a comprehensive guide on using IronPDF for .NET to manipulate PDF pages. Learn essential techniques such as rotating, scaling, and repositioning pages within existing PDF documents, enhancing your document management and editing capabilities. Read More
Updated January 10, 2026 How to Convert HTML to PDF with C# in .NET 10 | IronPDF This video tutorial guides you through the process of generating high-quality PDF documents directly from HTML using IronPDF for .NET. You will learn how IronPDF effectively renders HTML, CSS, and images to produce professional PDFs with ease and efficiency. Read More
Updated March 17, 2026 How to Convert QR Code to PDF in C# | IronPDF Discover how to generate and insert QR codes into PDFs programmatically with IronPDF. This tutorial walks you through the process, making it easy for developers to automate PDF creation with embedded QR codes. Read More
All your questions are answered to make sure you have all the information you need. (No commitment whatsoever.)