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

Add a StackTracePatternConverter to display method calls leading up to log message

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.11
    • Component/s: None
    • Labels:
      None

      Description

      Modify LocationInfo to save StackTrace information and make it available as StackTracePatternConverter to display call stack leading up to the log message:

      log.Debug("Item Saved");

      [%stackTrace

      {3}

      ] %message%newline

      [default_aspx.btnSubmit_Click > productController.Save > productService.Save] Item Saved

      This will probably be a slow pattern converter on par with other LocationInfo derived pattern converters.

        Attachments

        1. StackTracePatternConverter.cs
          8 kB
          Adam Davies
        2. log4net - StackTrace and StackTraceDetail.zip
          2 kB
          Adam Davies
        3. StackTracePatternConverter.zip
          4 kB
          Michael Cromwell

          Issue Links

          There are no Sub-Tasks for this issue.

            Activity

              People

              • Assignee:
                ron Ron Grabowski
                Reporter:
                ron Ron Grabowski
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: