Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
The current version of log4net is now 1.2.9 beta:
http://logging.apache.org/log4net/downloads.html
Here is a list of changes:
http://logging.apache.org/log4net/release/release-notes.html
All of the documentation on the log4net website is in reference to 1.2.9 beta.
The most important changes for me is the new file locking model for FileAppender: a FileAppender can be configured to not lock the log file(s) while the application is running. There are also new members to the ILog interface. Instead of doing this:
log.Debug(String.Format("Today is
{0}.", DateTime.Now.Today));log.Info(String.Format("Today is {0}
.", DateTime.Now.Today));
log.Warn(String.Format("Today is
log.Error(String.Format("Today is {0}
.", DateTime.Now.Today));
log.Fatal(String.Format("Today is
You can now do:
log.DebugFormat("Today is {0}
.", DateTime.Now.Today));
log.InfoFormat("Today is
log.WarnFormat("Today is {0}
.", DateTime.Now.Today));
log.FatalFormat("Today is
This is akin to StringBuilder's AppendFormat method:
stringBuilder.Append(String.Format("Today is {0}
.", DateTime.Now.Today));
stringBuilder.AppendFormat("Today is
.", DateTime.Now.Today));
I've been using it with my nightly builts of IBatisNet for the past few days without problems. I just dropped the files into the External-Bin directory and re-compiled. There were no errors.