4.2 Diagnosing Without Downtime via log4net
log4net is an application logging framework for the .NET platform, originally ported from the popular log4j framework for Java. Application logging serves two main purposes: to aid in application development and testing, and to enable runtime monitoring and diagnosis of applications in production.
log4net provides a mechanism for standardized, runtime-configurable application logging with minimal impact on application development and runtime performance.
| |
|---|---|
Tool | log4net |
Version covered | 1.2 |
Home page | |
Power Tools page | |
Summary | Application logging framework for .NET |
License type | Apache License 2.0 |
Online resources | Mailing lists |
Supported Frameworks | .NET 1.0, 1.1, 2.0 .NET Compact Framework 1.0 (1.0.5000) Mono 1.1.13 Microsoft Shared Source CLI 1.0 Compatible |
Getting Started
Setting up your project to use log4net is straightforward. Just download the distribution from the Downloads link on the tool’s home page, extract the log4net distribution, and follow these four steps.
Step 1: Referencing the assembly
You must select the correct build of log4net for your environment. For example, if you are using version 1.1 of the .NET Framework, you should select the log4net.dll file located in the bin\net\1.1\release folder in the log4net distribution. To add a reference to your Visual ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access
