log4net is a tool to help the programmer output log statements to a variety of output targets. In case of problems with an application, it is helpful to enable logging so that the problem can be located. With log4net it is possible to enable logging at runtime without modifying the application binary. The log4net package is designed so that log statements can remain in shipped code without incurring a high performance cost. It follows that the speed of logging (or rather not logging) is crucial. At the same time, log output can be so voluminous that it quickly becomes overwhelming. One of the distinctive features of log4net is the notion of hierarchical loggers. Using these loggers it is possible to selectively control which log statements are output at arbitrary granularity. log4net is designed with two distinct goals in mind: speed and flexibility


Keywords
log, logfiles, logging, tracing, apache, api, dotnet, library, log4net, logger, syslog
License
Apache-2.0
Install
Install-Package log4net -Version 2.0.5

Documentation

Introduction

Apache log4net is a sub project of the Apache Logging Services project. Apache log4net graduated from the Apache Incubator in February 2007. Web site: http://logging.apache.org/log4net

Documentation

For the latest documentation see the log4net web site at: http://logging.apache.org/log4net

Contributing

log4net development happens on the logging dev mailing list, see https://logging.apache.org/log4net/mail-lists.html. Please join the mailing list and discuss bigger changes before working on them.

For bigger changes we must ask you to sign a Contributor License Agreement http://www.apache.org/licenses/#clas.

Github pull requests are one way to contribute, The Apache issue tracker is no longer accepting new issues but is available at https://issues.apache.org/jira/browse/LOG4NET for access to previous issues.

Developing

log4net targets a wide array of .net platforms, including some which are out of support from Microsoft, making it difficult to install relevant SDKs and build for those targets. In particular, older Client Profile .NET Framework targets and dotnet core 1.1 may be installed by using the bundled helper scripts:

These scripts download the relevant installers from Microsoft servers, but you run them at your own risk.

Please see