NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #147 most downloaded on NuGet
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
Latest stable
3.6.0
Last release 10 days ago
12 Nov 2026
Ships fairly regularly
a new release about every 2 months
Nearly every release is documented
notes for 21 of 21 stable releases
12 versions withdrawn
withdrawn after publishing
127 years old
33 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
count only the current date's backups when RollingFileAppender starts by @Snotface in #334
Full Changelog: rel/3.5.0...rc/3.6.0
Nuget
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Full Changelog: https://github.com/apache/logging-log4net/compare/rel/3.5.0...rc/3.6.0
Nuget
Recognise a native host as having no configuration system ( #162 ) by @FreeAndNil in #311
Full Changelog: rel/3.4.0...rc/3.5.0
Nuget
Full Changelog: https://github.com/apache/logging-log4net/compare/rel/3.4.0...rc/3.5.0
Nuget
Bump js-yaml, @antora/cli and @antora/site-generator-default by @dependabot [bot] in #299
LoggingEvent.UserName resolving the Windows identity for every event by @FreeAndNil in #304Full Changelog: rel/3.3.2...rel/3.4.0
Nuget
LoggingEvent.UserName resolving the Windows identity for every event by @FreeAndNil in https://github.com/apache/logging-log4net/pull/304Full Changelog: https://github.com/apache/logging-log4net/compare/rel/3.3.2...rel/3.4.0
Nuget
Add Grzegorz Dziadkiewicz to list of active commiters by @gdziadkiewicz in #293
Full Changelog: rel/3.3.1...rel/3.3.2
Nuget: https://www.nuget.org/packages/log4net/3.3.2
Full Changelog: https://github.com/apache/logging-log4net/compare/rel/3.3.1...rel/3.3.2 Nuget: https://www.nuget.org/packages/log4net/3.3.2
Bump picomatch by @dependabot [bot] in #284
Full Changelog: rel/3.3.0...rel/3.3.1
Nuget: https://www.nuget.org/packages/log4net/3.3.1
Full Changelog: https://github.com/apache/logging-log4net/compare/rel/3.3.0...rel/3.3.1 Nuget: https://www.nuget.org/packages/log4net/3.3.1
switch to macos-14 - mono no longer works on macos-15 by @FreeAndNil in #266
Full Changelog: rel/3.2.0...rc/3.3.0-rc1
Nuget: https://www.nuget.org/packages/log4net/3.3.0
Full Changelog: https://github.com/apache/logging-log4net/compare/rel/3.2.0...rc/3.3.0-rc1 Nuget: https://www.nuget.org/packages/log4net/3.3.0
Fix caching of time strings in AbsoluteTimeDateFormatter by @FreeAndNil in #248
Full Changelog: https://github.com/apache/logging-log4net/compare/rel/3.1.0...rel/3.2.0 Nuget: https://www.nuget.org/packages/log4net/3.2.0
Migrate log4net site to Antora and use logging-parent pom by @FreeAndNil in #210 and #238
Full Changelog: https://github.com/apache/logging-log4net/compare/rel/3.0.4...rel/3.1.0 Nuget: https://www.nuget.org/packages/log4net/3.1.0
Turn on the CI build for PRs by @gdziadkiewicz in #204
Full Changelog: https://github.com/apache/logging-log4net/compare/rel/3.0.3...rel/3.0.4 Nuget: https://www.nuget.org/packages/log4net/3.0.4
Bumped NUnit to 4.2.2 by @FreeAndNil in #200
Full Changelog: https://github.com/apache/logging-log4net/compare/rel/3.0.2...rel/3.0.3 Nuget: https://www.nuget.org/packages/log4net/3.0.3
more modern coding style by @FreeAndNil in #196
Full Changelog: https://github.com/apache/logging-log4net/compare/rel/3.0.1...rel/3.0.2 Nuget: https://www.nuget.org/packages/log4net/3.0.2
## What's Changed * #176 added source link by @FreeAndNil * #177 use ManagedThreadId for long running tasks (reported by @Audela-220) fixed in #180 by
Full Changelog: https://github.com/apache/logging-log4net/compare/rel/3.0.0...rel/3.0.1 Nuget: https://www.nuget.org/packages/log4net/3.0.1
Apache log4net 3.0.0 addresses the following issues:
Apache log4net 3.0.0 addresses the following issues:
Attention: Starting with 3.0.0 we only support the following target frameworks
The reasoning for this change can be found in #111
log4net.Appender.BufferingAppenderSkeleton.OnlyFixPartialEventData and log4net.Appender.MemoryAppender.OnlyFixPartialEventData (you will need to change your config files from onlyFixPartialEventData value="true" to fix value="Partial")
log4net.Appender.ColoredConsoleAppender.ctor(ILayout)
log4net.Appender.ColoredConsoleAppender.ctor(ILayout, bool)
log4net.Appender.ConsoleAppender.ctor(ILayout)
log4net.Appender.ConsoleAppender.ctor(ILayout, bool)
log4net.Appender.DebugAppender.ctor(ILayout)
log4net.Appender.EventLogAppender.ctor(ILayout)
log4net.Appender.FileAppender.ctor(ILayout, string)
log4net.Appender.FileAppender.ctor(ILayout, string, bool)
log4net.Appender.SmtpAppender.LocationInfo
log4net.Appender.TextWriterAppender.ctor(ILayout, Stream)
log4net.Appender.TextWriterAppender.ctor(ILayout, TextWriter)
log4net.Appender.TraceAppender.ctor(ILayout)
log4net.Config.DOMConfigurator
log4net.Config.AliasDomainAttribute
log4net.Config.DomainAttribute
log4net.Config.DOMConfiguratorAttribute
log4net.Core.LoggerManager.GetLoggerRepository
log4net.Core.LoggerManager.CreateDomain
log4net.Core.LoggingEventData.TimeStamp
log4net.Core.LoggingEvent.GetExceptionStrRep
log4net.Core.LoggingEvent.FixVolatileData
log4net.LogManager.GetLoggerRepository
log4net.LogManager.CreateDomain
log4net.Util.SystemInfo.ProcessStartTimelog4net.Appender.RemotingAppender (see #154 - Remove RemotingAppender)log4net.Appender.NetSendAppender (see #158 - NetSendAppender removed)log4net.Config.AliasRepositoryAttribute is now sealed (#124)log4net.Config.RepositoryAttribute is now sealed (#124)log4net.Config.XmlConfiguratorAttribute is now sealed (#124)log4net.Appender.AppenderCollection.IAppenderCollectionEnumerator is now obsolete and must be replaced by IEnumerator<IAppender> (#124)log4net.Appender.MemoryAppender.m_eventsList (protected field) was changed from ArrayList to List<LoggingEvent> (#124)
m_eventsList.SyncRoot you need to cast it: ((ICollection)m_eventsList).SyncRootlog4net.Repository.Hierarchy.Hierarchy.EmittedNoAppenderWarning is now internal (see #157)A big thanks to @erikmav for the hard work regarding nullable annotations and moving to generic collections.
Full Changelog: https://github.com/apache/logging-log4net/compare/rel/2.0.17...rel/3.0.0 Nuget: https://www.nuget.org/packages/log4net/3.0.0
Apache log4net 2.0.17 addresses reported issues:
Apache log4net 2.0.17 addresses reported issues:
A big thanks to @FreeAndNil for doing all the hard work of collating changes.
A big thanks to @FreeAndNil for doing all the hard work of collating changes.
Bug fixes
Enhancements
_*Attention*: .NET 3.5 Client Profile is no longer supported_. I'm really sorry, I've tried to keep as many of the legacy targets available as possibl
Attention: .NET 3.5 Client Profile is no longer supported. I'm really sorry, I've tried to keep as many of the legacy targets available as possible, but after spending another 4 or so hours trying to get net35-client to build on any machine, I've given up - as far as I'm aware, this should only affect Windows XP clients. I'm afraid 2.0.14 was the end of the road for you. Apache log4net 2.0.15 addresses reported issues:
Pull request by @NicholasNoise to address issues with logging via ado appender to PostgreSQL
<ul> <li><a href="https://github.com/apache/logging-log4net/pull/77">Pull request</a> by @NicholasNoise to address issues with logging via ado appender to PostgreSQL</li> <li>Community request to correctly handle null data in ReadOnlyPropertiesDictionary</li> <li><a href="https://github.com/apache/logging-log4net/pull/78">Pull request</a> by @erikmav to use the numeric thread id for .net worker pool threads (<a href="https://issues.apache.org/jira/projects/LOG4NET/issues/LOG4NET-680">LOG4NET-680</a>)</li> <li><a href="https://github.com/apache/logging-log4net/pull/79">Pull request</a> by @erikmav to dispose of WindowsIdentity retrieved in TryGetCurrentUserName() (<a href="https://issues.apache.org/jira/projects/LOG4NET/issues/LOG4NET-671">LOG4NET-671</a>)</li> </ul>
address deadlock with rolling file appender
Some minor updates:
This is essentially the same release as rc-1, with the artifacts updated so that unzipping them won't scatter files in the target.
Should resolve issues with PlatformNotSupported exceptions raised on !win32 when attempting to include the current user name in logs.
PlatformNotSupported exceptions raised on !win32 when attempting to include the current user name in logs.Full Changelog: https://github.com/apache/logging-log4net/compare/rel/2.0.11...rel/2.0.12
corrects assembly versioning still reported as 2.0.9 in the 2.0.10 release
Full Changelog: https://github.com/apache/logging-log4net/compare/rel/2.0.10...rel/2.0.11
[LOG4NET-575] Addresses CVE-2018-1285 by cherry-picking the fix from Dominik Psenner, reported by Karthik Balasundaram, as it already existed in the t…
Apache log4net 2.0.10 improves netstandard2.0 support thanks to community member @NicholasNoise.
Full Changelog: https://github.com/apache/logging-log4net/compare/rel/2.0.9...rel/2.0.10
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.