# Apache log4net

> A logging library for .NET

Source: https://talira.ai/catalog/apache-log4net-dfxy7zcp
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [observability / logging](https://talira.ai/categories/observability/logging), [languages / dotnet](https://talira.ai/categories/languages/dotnet)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [Apache Software Foundation](https://talira.ai/orgs/apache-software-foundation.md)
- Funding: non-profit[^2]

Apache log4net is a logging library for [.NET](https://talira.ai/catalog/net-9p8d54vj.md) that writes log statements to many output targets. Built-in appenders write to files, network sockets, databases, SMTP servers and more; layouts render text, XML, JSON or Syslog; and filters select by level or regular expression. Logging is configured outside the application binary and can be turned on at runtime, and log4net reloads its configuration when it changes without losing log events. It is a project of the Apache Software Foundation.

## Links

- Website: https://logging.apache.org/log4net/
- GitHub: https://github.com/apache/logging-log4net
- Docs: https://logging.apache.org/log4net/

## Problems it solves

- add logging to a .NET application with output to files and databases
- turn on logging in a running .NET app without recompiling
- write C# logs as JSON or to Syslog
- rotate log files in a .NET Framework application

## Features

- appenders for files, sockets, databases, SMTP and more
- text, XML, JSON and Syslog layouts
- level and regex filters
- configuration reloads without losing events
- runtime configuration without changing the binary

## Trust

Overall: 0.37 out of 1.
Signals: backing 0.55, extensibility 0.00.

- backed by Apache Software Foundation
- funding: non-profit

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Serilog](https://talira.ai/catalog/serilog-y4wz6ahr.md): Simple .NET logging with fully structured events

## Sources

[^1]: https://logging.apache.org/log4net/ (checked 23 Nov 2026)
[^2]: https://www.apache.org/foundation/ (checked 20 Nov 2026)
