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

ILogExtensions don't preserve stack trace of caller

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.0.8
    • None
    • Other
    • None

    Description

      If you use a PatternLayout key such as %file or %method and use any of the ILogExtensions methods, the file and method (and any other info which should be showing the caller's stack frame) which are output are that of the ILogExtensions extension method rather than of the stack frame above it (the code that called ILogExtensions).

      I could supply code to fix this via a pull request which would involve calling the lower level log method directly with the appropriate stack boundary type.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bensiron Ben Siron
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: