Log4net
  1. Log4net
  2. LOG4NET-154

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

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major 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.

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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development