Uploaded image for project: 'iBatis for .NET'
  1. iBatis for .NET
  2. IBATISNET-65

Upgrade to log4net 1.2.9 beta

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • DataMapper 1.3
    • 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

      {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.

      Attachments

        Activity

          People

            gilles Gilles Bayon
            ron liu ron
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: