Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-368

method and class name functions not properly implemented

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: None
    • Component/s: Layout
    • Labels:
      None
    • Environment:
      REHL 5, X86_64

      Description

      You can specify %M and %C in the ConversionPattern which is intended to display the Method Name and Class Name (not documented but it is implemented). The implementation for these functions (in src/main/cpp/locationinfo.cpp) in correctly handles the case where the _PRETTY_FUNCTION_ returns the return type for a function i.e.:

      std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > fooNamespace::Foo::vecFunction()

        Attachments

        1. locationinfo_fix.patch
          1 kB
          Christoph Keller

          Activity

            People

            • Assignee:
              carnold@apache.org Curt Arnold
              Reporter:
              hali Haider Ali
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: