Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-371

Log with formatting doesn't call custom renderers (IObjectRenderer)

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.2.11
    • 1.2.12
    • Documentation

    Description

      If I log an object using ILog.Info(myObject), myObjectRenderer is used. If I use ILog.InfoFormat("my object is:

      {0}

      ", myObject) then the default renderer is used.

      I spent hours trying to figure out why the default renderer was being used and then on a whim I used the non-formatted log method and everything worked correctly. At the very least I would like the documentation for this feature to specify that only the non-formatted logging methods make use of custom renderers.

      Attachments

        Activity

          People

            nachbarslumpi Dominik Psenner
            carlin.scott Carlin Scott
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: