Upgrade to log4net 1.2.9 beta
-----------------------------

         Key: IBATISNET-65
         URL: http://issues.apache.org/jira/browse/IBATISNET-65
     Project: iBatis for .NET
        Type: Improvement
    Reporter: Ron Grabowski
 Assigned to: Gilles Bayon 
    Priority: Minor


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 {0}.", DateTime.Now.Today));
 log.Error(String.Format("Today is {0}.", DateTime.Now.Today));
 log.Fatal(String.Format("Today is {0}.", DateTime.Now.Today));

You can now do:

 log.DebugFormat("Today is {0}.", DateTime.Now.Today));
 log.InfoFormat("Today is {0}.", DateTime.Now.Today));
 log.WarnFormat("Today is {0}.", DateTime.Now.Today));
 log.FatalFormat("Today is {0}.", DateTime.Now.Today));

This is akin to StringBuilder's AppendFormat method:

 stringBuilder.Append(String.Format("Today is {0}.", DateTime.Now.Today));
 stringBuilder.AppendFormat("Today is {0}.", 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to