Log4net for .NET 4.0 & .NET 3.5/4.0 client

By DimitriC at January 19, 2012 08:26
Filed Under: General, log4net, tools & Utilities, Programming

Release 1.2.11 of log4net has these changes (source):

 

General:

 

log4net 1.2.11 is not only a bug fix release, it also adds support for Microsoft® .NET 4.0 as well as the client profiles of .NET 3.5 and .NET 4.0. … The binary distributions no longer contain assemblies built for the Compact Framework 1.0 or the Shared Source CLI - you can build those yourself using the source distribution.

NOTE: The signature of ILoggerFactory.CreateLogger has changed!

 

Some of the bug fixes:

- Visual Studio 2010 .NET 4.0 Application does not copy log4net lib to bin directory

- RemoteFileAppender Tests fail on Windows 7

- log4net doesn't log when running a .Net 4.0 Windows application built in Release mode

- EventLogAppender's ActivateOptions throws SecurityException on Vista/Win2k3 and later when not run as administrator

 

Some of the improvements:

 

- support .NET 2.0 connectionStrings configuration section

- IPAddressConverter improvement for .NET 2 or .NET 3

- Add Cc and Bcc support to SmtpAppender

 

Some new features:

 

- add the ability to roll files based on universal time (UTC).

- Support ASP.Net related PatternConverters to allow items from the HttpContext.Current.Session, Cache, Request, etc. to be captured.

- Build for Compact Framework 2.0

- Added ExceptionEvaluator

- Add TimeEvaluator

- New property ReplyTo address for the SmtpAppender required

- Buildable with VS 2008 and .NET FW 3.5

  • - Support .NET 4.0 including Client Profile

 

 

Previous articles:

 

- Logging: Log4Net Part I

- Logging: Log4Net Part II

- Logging: Log4Net Part III

- Logging: What/When to log?

- Logging: Log4Net Custom AdoNetAdapter and RollingFileAppender with XML

 

Links:

 

- Log4net web site

- Download Log4net

Comments (2) -

2/2/2012 5:01:51 PM #

Hello to all, it’s in fact a fastidious for me to pay a quick visit this site, it consists of important Information.

Joya Perin

2/4/2012 4:03:08 AM #

Who\'s got enough time and energy to look at electricity costs?
I could not believe the cost savings just by doing an electricity pricing comparison. Extraordinary

Fees

2/5/2012 4:02:46 AM #

Hey  I really enjoyed your post.  Social networking is great and i have found Facebook is the best for my business. I also have found Twitter to be a good to get traffic to my website. Video will be my next marketing tool.

Rob

2/18/2012 9:38:21 AM #

I would like to thank you for the efforts you have put in writing this website, . I`m hoping the same high-grade site post from you in the future also. Actually your creative writing abilities has encouraged me to get my own blog going now. Actually blogging is spreading its wings and growing fast. Your write up is a good example.

Traffic With Anik

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading