Skip to content

3.0.0-preview.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@FreeAndNil FreeAndNil released this 23 Jul 14:11
· 145 commits to master since this release
a4489f0

Apache log4net 3.0.0-preview.1 is the first preview of log4net 3.0.0 and addresses the following issues:

Breaking Changes

Framework Support

Attention: Starting with 3.0.0 we only support the following target frameworks

  • net462
  • netstandard2.0

The reasoning for this change can be found in #111 - Dropping support for older runtimes

Deleted obsolete API (#125 - Remove deprecated code for 3.0)

  • obsolete since 1.2.14 - 2015
    • log4net.Appender.BufferingAppenderSkeleton.OnlyFixPartialEventData
    • 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.MemoryAppender.OnlyFixPartialEventData
    • 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
  • obsolete since 2.0.6 - 2016
    • log4net.Util.SystemInfo.ProcessStartTime

Other changes (#124 - Add support for nullable annotations)

  • log4net.Config.AliasRepositoryAttribute is now sealed
  • log4net.Config.RepositoryAttribute is now sealed
  • log4net.Config.XmlConfiguratorAttribute is now sealed
  • interface log4net.Appender.AppenderCollection.IAppenderCollectionEnumerator is now obsolete and must be replaced by IEnumerator<IAppender>
  • log4net.Appender.MemoryAppender.m_eventsList (protected field) was changed from ArrayList to List<LoggingEvent>
    • for getting m_eventsList.SyncRoot you need to cast it: ((ICollection)m_eventsList).SyncRoot

Enhancements

A big thanks to @erikmav for the hard work regarding nullable annotations and moving to generic collections.