Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4368

LoggingInterceptors don't encourage reuse

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.6
    • None
    • None
    • None
    • Unknown

    Description

      I have my own logging interceptors that write to a database.
      The code for these is largely a copy of the code in LoggingInInterceptor and LoggingOutInterceptor, but as a copy it doesn't take advantage of changes in those interceptors which may be necessary to take advantage of changes in CXF.

      As a minimum I propose changing the line:
      log(logger, buffer.toString());
      to be a call to an overridable method so that the buffer can be accessed by subclasses.
      I may also introduce other overridable methods to give access to the raw Message and abstract the LoggingMessage so that more custom data can be collected.

      Attachments

        1. CXF-4368.diff
          13 kB
          Yaytay

        Issue Links

          Activity

            People

              ffang Freeman Yue Fang
              yaytay Yaytay
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: